]> 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)
commitbfc8b93c00ebc7127244c8784bca68855da76dd6
tree16c54d9e84a2926282290deabc3995c67a32202b
parentaa1903c94cc01df2db967df7c4052d5f7f5d2dc9
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