]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: update delivered_ce with delivered
authorYousuk Seung <ysseung@google.com>
Sat, 27 Jun 2020 04:05:35 +0000 (21:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Jun 2020 00:41:27 +0000 (17:41 -0700)
commit082d4fa980b07b1cc602305e9cc0815d19663ed3
tree16c54d9e84a2926282290deabc3995c67a32202b
parentf00394ce6054e54319aefa51e4c495f9ebeb8669
tcp: update delivered_ce with delivered

Currently tp->delivered is updated in various places in tcp_ack() but
tp->delivered_ce is updated once at the end. As a result two counts in
OPT_STATS of SCM_TSTAMP_ACK timestamps generated in tcp_ack() may not be
in sync. This patch updates both counts at the same in tcp_ack().

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