tcp: add SRTT to SCM_TIMESTAMPING_OPT_STATS
authorYousuk Seung <ysseung@google.com>
Fri, 16 Nov 2018 00:44:12 +0000 (16:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 04:34:36 +0000 (20:34 -0800)
commite8bd8fca6773ef49390269bd467bf940a0841ccf
tree8dec28ff16f6d6829de8aff8f60276ff2afd3247
parent54e8cb786130949a4d37792383cb528176771e5d
tcp: add SRTT to SCM_TIMESTAMPING_OPT_STATS

Add TCP_NLA_SRTT to SCM_TIMESTAMPING_OPT_STATS that reports the smoothed
round trip time in microseconds (tcp_sock.srtt_us >> 3).

Signed-off-by: Yousuk Seung <ysseung@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tcp.h
net/ipv4/tcp.c