Thread (26 messages) flat view 26 messages, 2 authors, 2025-09-25

Re: [PATCH v2 net-next 11/14] tcp: accecn: fallback outgoing half link to non-AccECN

From: Paolo Abeni <pabeni@redhat.com>
Date: 2025-09-23 10:28:38
Also in: bpf, linux-doc, linux-kselftest

On 9/18/25 6:21 PM, chia-yu.chang@nokia-bell-labs.com wrote:
quoted hunk ↗ jump to hunk
diff --git a/include/net/tcp_ecn.h b/include/net/tcp_ecn.h
index 2256d2efa5ec..8317c3f279c9 100644
--- a/include/net/tcp_ecn.h
+++ b/include/net/tcp_ecn.h
@@ -169,7 +169,10 @@ static inline void tcp_accecn_third_ack(struct sock *sk,
 	switch (ace) {
 	case 0x0:
 		/* Invalid value */
-		tcp_accecn_fail_mode_set(tp, TCP_ACCECN_ACE_FAIL_RECV);
+		if (!TCP_SKB_CB(skb)->sacked) {
+			tcp_accecn_fail_mode_set(tp, TCP_ACCECN_ACE_FAIL_RECV |
+						     TCP_ACCECN_OPT_FAIL_RECV);
+		}
Minor nit: brackets are not needed above.

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help