diff options
author | 2025-03-05 23:38:47 +0100 | |
---|---|---|
committer | 2025-03-17 13:54:11 +0000 | |
commit | 041fb11d518f5d25d323766bc0f59b09bba314bc (patch) | |
tree | 6e9b74c9bf0b650a6221065454747472622d0de8 /net/ipv4/tcp_dctcp.c | |
parent | tcp: rework {__,}tcp_ecn_check_ce() -> tcp_data_ecn_check() (diff) | |
download | wireguard-linux-041fb11d518f5d25d323766bc0f59b09bba314bc.tar.xz wireguard-linux-041fb11d518f5d25d323766bc0f59b09bba314bc.zip |
tcp: helpers for ECN mode handling
Create helpers for TCP ECN modes. 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>
Diffstat (limited to 'net/ipv4/tcp_dctcp.c')
-rw-r--r-- | net/ipv4/tcp_dctcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_dctcp.c b/net/ipv4/tcp_dctcp.c index 8a45a4aea933..03abe0848420 100644 --- a/net/ipv4/tcp_dctcp.c +++ b/net/ipv4/tcp_dctcp.c @@ -90,7 +90,7 @@ __bpf_kfunc static void dctcp_init(struct sock *sk) { const struct tcp_sock *tp = tcp_sk(sk); - if ((tp->ecn_flags & TCP_ECN_OK) || + if (tcp_ecn_mode_any(tp) || (sk->sk_state == TCP_LISTEN || sk->sk_state == TCP_CLOSE)) { struct dctcp *ca = inet_csk_ca(sk); |