[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250304163039.78758-1-chia-yu.chang@nokia-bell-labs.com>
Date: Tue, 4 Mar 2025 17:30:37 +0100
From: chia-yu.chang@...ia-bell-labs.com
To: netdev@...r.kernel.org,
dsahern@...il.com,
davem@...emloft.net,
edumazet@...gle.com,
dsahern@...nel.org,
pabeni@...hat.com,
joel.granados@...nel.org,
kuba@...nel.org,
andrew+netdev@...n.ch,
horms@...nel.org,
pablo@...filter.org,
kadlec@...filter.org,
netfilter-devel@...r.kernel.org,
coreteam@...filter.org,
kory.maincent@...tlin.com,
bpf@...r.kernel.org,
kuniyu@...zon.com,
andrew@...n.ch,
ij@...nel.org,
ncardwell@...gle.com,
koen.de_schepper@...ia-bell-labs.com,
g.white@...leLabs.com,
ingemar.s.johansson@...csson.com,
mirja.kuehlewind@...csson.com,
cheshire@...le.com,
rs.ietf@....at,
Jason_Livingood@...cast.com,
vidhi_goel@...le.com
Cc: Chia-Yu Chang <chia-yu.chang@...ia-bell-labs.com>
Subject: [PATCH v7 net-next 10/12] tcp: AccECN support to tcp_add_backlog
From: Ilpo Järvinen <ij@...nel.org>
AE flag needs to be preserved for AccECN.
Signed-off-by: Ilpo Järvinen <ij@...nel.org>
Signed-off-by: Chia-Yu Chang <chia-yu.chang@...ia-bell-labs.com>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
---
net/ipv4/tcp_ipv4.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index fab684221bf7..87f270ebc635 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2051,7 +2051,8 @@ bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb,
!((TCP_SKB_CB(tail)->tcp_flags &
TCP_SKB_CB(skb)->tcp_flags) & TCPHDR_ACK) ||
((TCP_SKB_CB(tail)->tcp_flags ^
- TCP_SKB_CB(skb)->tcp_flags) & (TCPHDR_ECE | TCPHDR_CWR)) ||
+ TCP_SKB_CB(skb)->tcp_flags) &
+ (TCPHDR_ECE | TCPHDR_CWR | TCPHDR_AE)) ||
!tcp_skb_can_collapse_rx(tail, skb) ||
thtail->doff != th->doff ||
memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)))
--
2.34.1
Powered by blists - more mailing lists