aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.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.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.c')
-rw-r--r--net/ipv4/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 46951e749308..989c3c3d8e75 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -4138,7 +4138,7 @@ void tcp_get_info(struct sock *sk, struct tcp_info *info)
info->tcpi_rcv_wscale = tp->rx_opt.rcv_wscale;
}
- if (tp->ecn_flags & TCP_ECN_OK)
+ if (tcp_ecn_mode_any(tp))
info->tcpi_options |= TCPI_OPT_ECN;
if (tp->ecn_flags & TCP_ECN_SEEN)
info->tcpi_options |= TCPI_OPT_ECN_SEEN;