tcp: remove tcp_ecn_make_synack() socket argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:18 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:38 +0000 (13:00 -0700)
commit1bd698a84669ef2632c9f17165b67d73d7c76372
tree154c40ca207c6556ad154aeb77f8ab74ae21ac4c
parentb484ea74713bf6bd21ae55f022cd8503bb0440e5
tcp: remove tcp_ecn_make_synack() socket argument

SYNACK packets might be sent without holding socket lock.

For DCTCP/ECN sake, we should call INET_ECN_xmit() while
socket lock is owned, and only when we init/change congestion control.

This also fixies a bug if congestion module is changed from
dctcp to another one on a listener : we now clear ECN bits
properly.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cong.c
net/ipv4/tcp_output.c