diff options
author | Tuong Lien <tuong.t.lien@dektech.com.au> | 2019-04-04 11:09:53 +0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-04 18:29:25 -0700 |
commit | 58ee86b8c7750a6b67d665a031aa3ff13a9b6863 (patch) | |
tree | eb2b99d9b5a9e4b67f8b110fed5b0106d6e548c0 /net/core/datagram.c | |
parent | 382f598fb66b14a8451f2794abf70ea7b5826c96 (diff) | |
download | linux-58ee86b8c7750a6b67d665a031aa3ff13a9b6863.tar.bz2 |
tipc: adapt link failover for new Gap-ACK algorithm
In commit 0ae955e2656d ("tipc: improve TIPC throughput by Gap ACK
blocks"), we enhance the link transmq by releasing as many packets as
possible with the multi-ACKs from peer node. This also means the queue
is now non-linear and the peer link deferdq becomes vital.
Whereas, in the case of link failover, all messages in the link transmq
need to be transmitted as tunnel messages in such a way that message
sequentiality and cardinality per sender is preserved. This requires us
to maintain the link deferdq somehow, so that when the tunnel messages
arrive, the inner user messages along with the ones in the deferdq will
be delivered to upper layer correctly.
The commit accomplishes this by defining a new queue in the TIPC link
structure to hold the old link deferdq when link failover happens and
process it upon receipt of tunnel messages.
Also, in the case of link syncing, the link deferdq will not be purged
to avoid unnecessary retransmissions that in the worst case will fail
because the packets might have been freed on the sending side.
Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Tuong Lien <tuong.t.lien@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/datagram.c')
0 files changed, 0 insertions, 0 deletions