[PATCH bpf-next v2 0/6] tcp: add some RTO MIN and DELACK MAX {bpf_}set/getsockopt supports

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

 



Introduce bpf_sol_tcp_getsockopt() helper.

Add bpf_getsockopt for RTO MIN and DELACK MAX.

Add setsockopt/getsockopt for RTO MIN and DELACK MAX.

Add corresponding selftests for bpf.

v2
Link: https://lore.kernel.org/all/20250309123004.85612-1-kerneljasonxing@xxxxxxxxx/
1. add bpf getsockopt common helper
2. target bpf-next net branch

Jason Xing (6):
  bpf: introduce bpf_sol_tcp_getsockopt to support TCP_BPF flags
  tcp: bpf: support bpf_getsockopt for TCP_BPF_RTO_MIN
  tcp: bpf: support bpf_getsockopt for TCP_BPF_DELACK_MAX
  tcp: support TCP_RTO_MIN_US for set/getsockopt use
  tcp: support TCP_DELACK_MAX_US for set/getsockopt use
  selftests: add bpf_set/getsockopt() for TCP_BPF_DELACK_MAX and
    TCP_BPF_RTO_MIN

 Documentation/networking/ip-sysctl.rst        |  4 +-
 include/net/tcp.h                             |  2 +-
 include/uapi/linux/tcp.h                      |  2 +
 net/core/filter.c                             | 45 ++++++++++++++-----
 net/ipv4/tcp.c                                | 32 ++++++++++++-
 net/ipv4/tcp_output.c                         |  2 +-
 .../selftests/bpf/progs/setget_sockopt.c      |  2 +
 7 files changed, 71 insertions(+), 18 deletions(-)

-- 
2.43.5





[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