]> 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)
commitafc12226071e8b47c38d6292b2ba91e03eb45248
tree16c54d9e84a2926282290deabc3995c67a32202b
parentfcde26f650eebcafca74c036f6c88a4045623f38
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