Skip to content

Commit de7e07f

Browse files
Jon Paul Maloydavem330
authored andcommitted
tipc: ensure that first packets on link are sent in order
In some link establishment scenarios we see that packet raspberrypi#2 may be sent out before packet raspberrypi#1, forcing the receiver to demand retransmission of the missing packet. This is harmless, but may cause confusion among people tracing the packet flow. Since this is extremely easy to fix, we do so by adding en extra send call to the bearer immediately after the link has come up. Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 42b18f6 commit de7e07f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎net/tipc/node.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,12 @@ static void __tipc_node_link_up(struct tipc_node *n, int bearer_id,
581581
static void tipc_node_link_up(struct tipc_node *n, int bearer_id,
582582
struct sk_buff_head *xmitq)
583583
{
584+
struct tipc_media_addr *maddr;
585+
584586
tipc_node_write_lock(n);
585587
__tipc_node_link_up(n, bearer_id, xmitq);
588+
maddr = &n->links[bearer_id].maddr;
589+
tipc_bearer_xmit(n->net, bearer_id, xmitq, maddr);
586590
tipc_node_write_unlock(n);
587591
}
588592

0 commit comments

Comments
 (0)