]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix segment accounting when DSACK range covers multiple segments
authorPriyaranjan Jha <priyarjha@google.com>
Thu, 16 Jul 2020 19:12:34 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2020 19:54:30 +0000 (12:54 -0700)
commit53fa6d66fbf5d30fd1891e46e6f72c0b31ed8a35
tree72891cb1446933fa3de034a492a64d87f811cfbb
parent78a35bd428aee32485efecfde1ea01f20eca76bd
tcp: fix segment accounting when DSACK range covers multiple segments

Currently, while processing DSACK, we assume DSACK covers only one
segment. This leads to significant underestimation of DSACKs with
LRO/GRO. This patch fixes segment accounting with DSACK by estimating
segment count from DSACK sequence range / MSS.

Signed-off-by: Priyaranjan Jha <priyarjha@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Yousuk Seung <ysseung@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c