]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: rework {__,}tcp_ecn_check_ce() -> tcp_data_ecn_check()
authorIlpo Järvinen <ij@kernel.org>
Wed, 5 Mar 2025 22:38:46 +0000 (23:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2025 13:50:13 +0000 (13:50 +0000)
commitf0db2bca0cf9d35a348f8fa726c1f61879a5cd02
tree22625ba03ae49b905b0aefeb414e182694a794ea
parent2c2f08d31d2f6cd5621b121d596986bd54da679a
tcp: rework {__,}tcp_ecn_check_ce() -> tcp_data_ecn_check()

Rename tcp_ecn_check_ce to tcp_data_ecn_check as it is
called only for data segments, not for ACKs (with AccECN,
also ACKs may get ECN bits).

The extra "layer" in tcp_ecn_check_ce() function just
checks for ECN being enabled, that can be moved into
tcp_ecn_field_check rather than having the __ variant.

No functional changes.

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