]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: reorganize tcp_in_ack_event() and tcp_count_delivered()
authorIlpo Järvinen <ij@kernel.org>
Wed, 5 Mar 2025 22:38:41 +0000 (23:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2025 13:48:15 +0000 (13:48 +0000)
commit149dfb31615e22271d2525f078c95ea49bc4db24
tree20d9e7a3c3290f924265b8c7b28ac4c8a943f515
parentbfc6c67ec2d64d0ca4e5cc3e1ac84298a10b8d62
tcp: reorganize tcp_in_ack_event() and tcp_count_delivered()

- Move tcp_count_delivered() earlier and split tcp_count_delivered_ce()
  out of it
- Move tcp_in_ack_event() later
- While at it, remove the inline from tcp_in_ack_event() and let
  the compiler to decide

Accurate ECN's heuristics does not know if there is going
to be ACE field based CE counter increase or not until after
rtx queue has been processed. Only then the number of ACKed
bytes/pkts is available. As CE or not affects presence of
FLAG_ECE, that information for tcp_in_ack_event is not yet
available in the old location of the call to tcp_in_ack_event().

Signed-off-by: Ilpo Järvinen <ij@kernel.org>
Signed-off-by: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c