tcp: new helper to calculate newly delivered
authorYuchung Cheng <ycheng@google.com>
Wed, 18 Apr 2018 06:18:47 +0000 (23:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 17:05:16 +0000 (13:05 -0400)
commita77fa0104abd4348b9ae06ab0afe218ceb2455ea
treeeee8f314ed38200cf7a9525ead4bc4bcc5a9bd7a
parentbef5767f37cfe42b1cf1ae60f01cfb4e16a7a2b8
tcp: new helper to calculate newly delivered

Add new helper tcp_newly_delivered() to prepare the ECN accounting change.

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