Skip to content

Commit d722762

Browse files
Ilpo Järvinendavem330
authored andcommitted
tcp: AccECN support to tcp_add_backlog
AE flag needs to be preserved for AccECN. 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]>
1 parent 4e4f7ce commit d722762

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/ipv4/tcp_ipv4.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,8 @@ bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb,
20512051
!((TCP_SKB_CB(tail)->tcp_flags &
20522052
TCP_SKB_CB(skb)->tcp_flags) & TCPHDR_ACK) ||
20532053
((TCP_SKB_CB(tail)->tcp_flags ^
2054-
TCP_SKB_CB(skb)->tcp_flags) & (TCPHDR_ECE | TCPHDR_CWR)) ||
2054+
TCP_SKB_CB(skb)->tcp_flags) &
2055+
(TCPHDR_ECE | TCPHDR_CWR | TCPHDR_AE)) ||
20552056
!tcp_skb_can_collapse_rx(tail, skb) ||
20562057
thtail->doff != th->doff ||
20572058
memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)))

0 commit comments

Comments
 (0)