]> git.openfabrics.org - ~emulex/infiniband.git/commit
tipc: fix link acknowledge logic in receive path
authorErik Hugne <erik.hugne@ericsson.com>
Tue, 1 Jul 2014 08:22:41 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 02:55:07 +0000 (19:55 -0700)
commit3f53bd8f8b563cc6024d25c1665d8358745f48b2
tree321f71bfb9e45193a99318225ba1b9b3944c0ff1
parent7ae934bebe289362e5b1f5ea50e4c347863ae202
tipc: fix link acknowledge logic in receive path

Link state acks triggered from the receive path is done before
the last received packet have been processed by the link layer.
The effect of this is that the last received packet will not be
included in the ack. This causes problems if the link window is
set to TIPC_MIN_LINK_WIN, where the ack interval will be equal to
the link tolerance, and the link enters a stop-and-go behavior.
We move the ack logic to after link state processing, just before
the packet is delivered to higher layers.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Carl Sigurjonsson <carl.sigurjonsson@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c