]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add earliest departure time to SCM_TIMESTAMPING_OPT_STATS
authorYousuk Seung <ysseung@google.com>
Thu, 30 Jul 2020 22:44:40 +0000 (15:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Aug 2020 00:00:44 +0000 (17:00 -0700)
commitb96a5b639b22731cd0e8ff9d4437e76941308eea
tree7a37d2d4390b9aa54bc87465b94ab358b4dedfcd
parent24f33a0df5a121579fbb5b03c113095639a88281
tcp: add earliest departure time to SCM_TIMESTAMPING_OPT_STATS

This change adds TCP_NLA_EDT to SCM_TIMESTAMPING_OPT_STATS that reports
the earliest departure time(EDT) of the timestamped skb. By tracking EDT
values of the skb from different timestamps, we can observe when and how
much the value changed. This allows to measure the precise delay
injected on the sender host e.g. by a bpf-base throttler.

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