diff options
author | Tuong Lien <tuong.t.lien@dektech.com.au> | 2020-04-15 14:34:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-16 02:23:33 +0300 |
commit | edadedf1c5b4e4404192a0a4c3c0c05e3b7672ab (patch) | |
tree | ea5f92b24be5dd68293dd3252ac9969d7b378764 /net/ax25 | |
parent | 5309960e49f5e2363d2814488878a29e944e1be9 (diff) | |
download | linux-edadedf1c5b4e4404192a0a4c3c0c05e3b7672ab.tar.xz |
tipc: fix incorrect increasing of link window
In commit 16ad3f4022bb ("tipc: introduce variable window congestion
control"), we allow link window to change with the congestion avoidance
algorithm. However, there is a bug that during the slow-start if packet
retransmission occurs, the link will enter the fast-recovery phase, set
its window to the 'ssthresh' which is never less than 300, so the link
window suddenly increases to that limit instead of decreasing.
Consequently, two issues have been observed:
- For broadcast-link: it can leave a gap between the link queues that a
new packet will be inserted and sent before the previous ones, i.e. not
in-order.
- For unicast: the algorithm does not work as expected, the link window
jumps to the slow-start threshold whereas packet retransmission occurs.
This commit fixes the issues by avoiding such the link window increase,
but still decreasing if the 'ssthresh' is lowered.
Fixes: 16ad3f4022bb ("tipc: introduce variable window congestion control")
Acked-by: Jon Maloy <jmaloy@redhat.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/ax25')
0 files changed, 0 insertions, 0 deletions