aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2014-07-16 20:40:59 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-17 00:38:18 -0400
commit25b660c7e202d533e4985380b24729fd12de2b5e (patch)
tree6db5559b3b958d5dbdbbaa8de398f197229d284b /net/tipc/link.c
parentdbdf6d24ad37d63938f29a2d134a1a9f6e9e673c (diff)
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>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 367b0f5886f8..d1255ba51216 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -999,7 +999,7 @@ int tipc_link_xmit2(struct sk_buff *buf, u32 dnode, u32 selector)
999 * 999 *
1000 * Called with node locked 1000 * Called with node locked
1001 */ 1001 */
1002static void tipc_link_sync_xmit(struct tipc_link *l) 1002static void tipc_link_sync_xmit(struct tipc_link *link)
1003{ 1003{
1004 struct sk_buff *buf; 1004 struct sk_buff *buf;
1005 struct tipc_msg *msg; 1005 struct tipc_msg *msg;
@@ -1009,10 +1009,9 @@ static void tipc_link_sync_xmit(struct tipc_link *l)
1009 return; 1009 return;
1010 1010
1011 msg = buf_msg(buf); 1011 msg = buf_msg(buf);
1012 tipc_msg_init(msg, BCAST_PROTOCOL, STATE_MSG, INT_H_SIZE, l->addr); 1012 tipc_msg_init(msg, BCAST_PROTOCOL, STATE_MSG, INT_H_SIZE, link->addr);
1013 msg_set_last_bcast(msg, l->owner->bclink.acked); 1013 msg_set_last_bcast(msg, link->owner->bclink.acked);
1014 link_add_chain_to_outqueue(l, buf, 0); 1014 __tipc_link_xmit2(link, buf);
1015 tipc_link_push_queue(l);
1016} 1015}
1017 1016
1018/* 1017/*
@@ -1859,7 +1858,7 @@ static void tipc_link_tunnel_xmit(struct tipc_link *l_ptr,
1859 } 1858 }
1860 skb_copy_to_linear_data(buf, tunnel_hdr, INT_H_SIZE); 1859 skb_copy_to_linear_data(buf, tunnel_hdr, INT_H_SIZE);
1861 skb_copy_to_linear_data_offset(buf, INT_H_SIZE, msg, length); 1860 skb_copy_to_linear_data_offset(buf, INT_H_SIZE, msg, length);
1862 __tipc_link_xmit(tunnel, buf); 1861 __tipc_link_xmit2(tunnel, buf);
1863} 1862}
1864 1863
1865 1864
@@ -1892,7 +1891,7 @@ void tipc_link_failover_send_queue(struct tipc_link *l_ptr)
1892 if (buf) { 1891 if (buf) {
1893 skb_copy_to_linear_data(buf, &tunnel_hdr, INT_H_SIZE); 1892 skb_copy_to_linear_data(buf, &tunnel_hdr, INT_H_SIZE);
1894 msg_set_size(&tunnel_hdr, INT_H_SIZE); 1893 msg_set_size(&tunnel_hdr, INT_H_SIZE);
1895 __tipc_link_xmit(tunnel, buf); 1894 __tipc_link_xmit2(tunnel, buf);
1896 } else { 1895 } else {
1897 pr_warn("%sunable to send changeover msg\n", 1896 pr_warn("%sunable to send changeover msg\n",
1898 link_co_err); 1897 link_co_err);
@@ -1965,7 +1964,7 @@ void tipc_link_dup_queue_xmit(struct tipc_link *l_ptr,
1965 skb_copy_to_linear_data(outbuf, &tunnel_hdr, INT_H_SIZE); 1964 skb_copy_to_linear_data(outbuf, &tunnel_hdr, INT_H_SIZE);
1966 skb_copy_to_linear_data_offset(outbuf, INT_H_SIZE, iter->data, 1965 skb_copy_to_linear_data_offset(outbuf, INT_H_SIZE, iter->data,
1967 length); 1966 length);
1968 __tipc_link_xmit(tunnel, outbuf); 1967 __tipc_link_xmit2(tunnel, outbuf);
1969 if (!tipc_link_is_up(l_ptr)) 1968 if (!tipc_link_is_up(l_ptr))
1970 return; 1969 return;
1971 iter = iter->next; 1970 iter = iter->next;