tcp: report ECN_SEEN in tcp_info
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 3 Oct 2011 18:01:21 +0000 (14:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2011 18:01:21 +0000 (14:01 -0400)
commitb5c5693bb723a019deac3cd1345f3e7233c8a67e
treee5136c3e7a6efee0453f2012882e0d95eed7672d
parent0654011d900670884197d9a06ad17b378dfde831
tcp: report ECN_SEEN in tcp_info

Allows ss command (iproute2) to display "ecnseen" if at least one packet
with ECT(0) or ECT(1) or ECN was received by this socket.

"ecn" means ECN was negotiated at session establishment (TCP level)

"ecnseen" means we received at least one packet with ECT fields set (IP
level)

ss -i
...
ESTAB      0      0   192.168.20.110:22  192.168.20.144:38016
ino:5950 sk:f178e400
 mem:(r0,w0,f0,t0) ts sack ecn ecnseen bic wscale:7,8 rto:210
rtt:12.5/7.5 cwnd:10 send 9.3Mbps rcv_space:14480

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp.c