[PATCH bpf-next v1 0/2] bpf: add mrtt and srtt as ctx->args for BPF_SOCK_OPS_RTT_CB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These provides more information about tcp RTT estimation. The selftest for
BPF_SOCK_OPS_RTT_CB is extended for the added args.

changelogs
-> v1:
- extend rtt selftest for added args (suggested by Stanislav)

Philo Lu (2):
  bpf: add mrtt and srtt as BPF_SOCK_OPS_RTT_CB args
  selftests/bpf: extend BPF_SOCK_OPS_RTT_CB test for srtt and mrtt_us

 include/net/tcp.h                                |  4 ++--
 include/uapi/linux/bpf.h                         |  2 ++
 net/ipv4/tcp_input.c                             |  4 ++--
 tools/include/uapi/linux/bpf.h                   |  2 ++
 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | 14 ++++++++++++++
 tools/testing/selftests/bpf/progs/tcp_rtt.c      |  6 ++++++
 6 files changed, 28 insertions(+), 4 deletions(-)

--
2.32.0.3.g01195cf9f





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux