tcp: add SYN/data info to TCP_INFO
authorYuchung Cheng <ycheng@google.com>
Fri, 19 Oct 2012 15:14:44 +0000 (15:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2012 19:16:06 +0000 (15:16 -0400)
commit6f73601efb35c7003f5c58c2bc6fd08f3652169c
treef77807af2f6bbe08104b4563eb150e9e425dfce6
parente6e71054cd9f98c8ebb3a5f66f2776a9736afc87
tcp: add SYN/data info to TCP_INFO

Add a bit TCPI_OPT_SYN_DATA (32) to the socket option TCP_INFO:tcpi_options.
It's set if the data in SYN (sent or received) is acked by SYN-ACK. Server or
client application can use this information to check Fast Open success rate.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/uapi/linux/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c