]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: inherit listener congestion control for passive cnx
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 30 Nov 2011 01:02:41 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2011 21:55:26 +0000 (16:55 -0500)
commit7733d2def4fa1f2f5036501a05bad6423461ebd9
treea0231b1aa1c44252c79c9cb769bd0695e021f1b6
parent6b9c66d554e87a987f6a1ee4d9c1a63cac7b86eb
tcp: inherit listener congestion control for passive cnx

Rick Jones reported that TCP_CONGESTION sockopt performed on a listener
was ignored for its children sockets : right after accept() the
congestion control for new socket is the system default one.

This seems an oversight of the initial design (quoted from Stephen)

Based on prior investigation and patch from Rick.

Reported-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Stephen Hemminger <shemminger@vyatta.com>
CC: Yuchung Cheng <ycheng@google.com>
Tested-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.txt
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c