OSDN Git Service

tcp: add ca_state stat in SCM_TIMESTAMPING_OPT_STATS
authorPriyaranjan Jha <priyarjha@google.com>
Sun, 4 Mar 2018 18:38:36 +0000 (10:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 15:40:48 +0000 (10:40 -0500)
commitbe631892948060f44b1ceee3132be1266932071e
treec459cfe49974d0a1e10840457b4abcd867600403
parent87ecc95d81d951b0984f2eb9c5c118cb68d0dce8
tcp: add ca_state stat in SCM_TIMESTAMPING_OPT_STATS

This patch adds TCP_NLA_CA_STATE stat into SCM_TIMESTAMPING_OPT_STATS.
It reports ca_state of socket, when timestamp is generated.

Signed-off-by: Priyaranjan Jha <priyarjha@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tcp.h
net/ipv4/tcp.c