]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Retain ECT bits for tos reflection
authorWei Wang <weiwan@google.com>
Tue, 8 Dec 2020 17:55:08 +0000 (09:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 00:08:23 +0000 (16:08 -0800)
commit52b4024ae3197f4ab96be855ed265e21940d5b59
tree74f6edf6c6e959406b20c0abbc457929040e6431
parent781d765448a98abdfae9b90b00c492347a5de4cd
tcp: Retain ECT bits for tos reflection

For DCTCP, we have to retain the ECT bits set by the congestion control
algorithm on the socket when reflecting syn TOS in syn-ack, in order to
make ECN work properly.

Fixes: d339f69f36db ("tcp: reflect tos value received in SYN to the socket")
Reported-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Wei Wang <weiwan@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c