aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_dctcp.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2025-03-05 22:38:47 +0000
committerDavid S. Miller <[email protected]>2025-03-17 13:54:11 +0000
commit041fb11d518f5d25d323766bc0f59b09bba314bc (patch)
tree6e9b74c9bf0b650a6221065454747472622d0de8 /net/ipv4/tcp_dctcp.c
parenttcp: rework {__,}tcp_ecn_check_ce() -> tcp_data_ecn_check() (diff)
downloadkernel-041fb11d518f5d25d323766bc0f59b09bba314bc.tar.gz
kernel-041fb11d518f5d25d323766bc0f59b09bba314bc.zip
tcp: helpers for ECN mode handling
Create helpers for TCP ECN modes. No functional changes. Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Chia-Yu Chang <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_dctcp.c')
-rw-r--r--net/ipv4/tcp_dctcp.c2
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);