Skip to content

Commit 25b660c

Browse files
Jon Paul Maloydavem330
authored andcommitted
tipc: let internal link users call the new link send function
We convert the link internal users (changeover protocol, broadcast synchronization) to use the new packet send function. Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dbdf6d2 commit 25b660c

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎net/tipc/link.c‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ int tipc_link_xmit2(struct sk_buff *buf, u32 dnode, u32 selector)
999999
*
10001000
* Called with node locked
10011001
*/
1002-
static void tipc_link_sync_xmit(struct tipc_link *l)
1002+
static void tipc_link_sync_xmit(struct tipc_link *link)
10031003
{
10041004
struct sk_buff *buf;
10051005
struct tipc_msg *msg;
@@ -1009,10 +1009,9 @@ static void tipc_link_sync_xmit(struct tipc_link *l)
10091009
return;
10101010

10111011
msg = buf_msg(buf);
1012-
tipc_msg_init(msg, BCAST_PROTOCOL, STATE_MSG, INT_H_SIZE, l->addr);
1013-
msg_set_last_bcast(msg, l->owner->bclink.acked);
1014-
link_add_chain_to_outqueue(l, buf, 0);
1015-
tipc_link_push_queue(l);
1012+
tipc_msg_init(msg, BCAST_PROTOCOL, STATE_MSG, INT_H_SIZE, link->addr);
1013+
msg_set_last_bcast(msg, link->owner->bclink.acked);
1014+
__tipc_link_xmit2(link, buf);
10161015
}
10171016

10181017
/*
@@ -1859,7 +1858,7 @@ static void tipc_link_tunnel_xmit(struct tipc_link *l_ptr,
18591858
}
18601859
skb_copy_to_linear_data(buf, tunnel_hdr, INT_H_SIZE);
18611860
skb_copy_to_linear_data_offset(buf, INT_H_SIZE, msg, length);
1862-
__tipc_link_xmit(tunnel, buf);
1861+
__tipc_link_xmit2(tunnel, buf);
18631862
}
18641863

18651864

@@ -1892,7 +1891,7 @@ void tipc_link_failover_send_queue(struct tipc_link *l_ptr)
18921891
if (buf) {
18931892
skb_copy_to_linear_data(buf, &tunnel_hdr, INT_H_SIZE);
18941893
msg_set_size(&tunnel_hdr, INT_H_SIZE);
1895-
__tipc_link_xmit(tunnel, buf);
1894+
__tipc_link_xmit2(tunnel, buf);
18961895
} else {
18971896
pr_warn("%sunable to send changeover msg\n",
18981897
link_co_err);
@@ -1965,7 +1964,7 @@ void tipc_link_dup_queue_xmit(struct tipc_link *l_ptr,
19651964
skb_copy_to_linear_data(outbuf, &tunnel_hdr, INT_H_SIZE);
19661965
skb_copy_to_linear_data_offset(outbuf, INT_H_SIZE, iter->data,
19671966
length);
1968-
__tipc_link_xmit(tunnel, outbuf);
1967+
__tipc_link_xmit2(tunnel, outbuf);
19691968
if (!tipc_link_is_up(l_ptr))
19701969
return;
19711970
iter = iter->next;

0 commit comments

Comments
 (0)