BPF List
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control
@ 2024-05-02  4:23 Miao Xu
  2024-05-02  4:23 ` [PATCH net-next v3 1/3] tcp: Add new args for cong_control in tcp_congestion_ops Miao Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Miao Xu @ 2024-05-02  4:23 UTC (permalink / raw)
  To: Eric Dumazet, David S . Miller, Jakub Kicinski, Paolo Abeni,
	David Ahern, Martin Lau
  Cc: netdev, bpf, Miao Xu

This patchset attempts to add two new arguments into the hookpoint
cong_control in tcp_congestion_ops. The new arguments are inherited
from the caller tcp_cong_control and can be used by any bpf cc prog
that implements its own logic inside this hookpoint.

Please review. Thanks a lot!

Changelog
=====
v2->v3:
  - Fixed the broken selftest caused by the new arguments.
  - Renamed the selftest file name and bpf prog name.

v1->v2:
  - Split the patchset into 3 separate patches.
  - Added highlights in the selftest prog.
  - Removed the dependency on bpf_tcp_helpers.h.

Miao Xu (3):
  tcp: Add new args for cong_control in tcp_congestion_ops
  bpf: tcp: Allow to write tp->snd_cwnd_stamp in bpf_tcp_ca
  selftests/bpf: Add test for the use of new args in cong_control

 include/net/tcp.h                             |   2 +-
 net/ipv4/bpf_tcp_ca.c                         |   6 +-
 net/ipv4/tcp_bbr.c                            |   2 +-
 net/ipv4/tcp_input.c                          |   2 +-
 .../selftests/bpf/progs/bpf_cc_cubic.c        | 206 ++++++++++++++++++
 .../selftests/bpf/progs/bpf_tracing_net.h     |  10 +
 .../selftests/bpf/progs/tcp_ca_kfunc.c        |   6 +-
 7 files changed, 227 insertions(+), 7 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/bpf_cc_cubic.c

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-02 23:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02  4:23 [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control Miao Xu
2024-05-02  4:23 ` [PATCH net-next v3 1/3] tcp: Add new args for cong_control in tcp_congestion_ops Miao Xu
2024-05-02  4:23 ` [PATCH net-next v3 2/3] bpf: tcp: Allow to write tp->snd_cwnd_stamp in bpf_tcp_ca Miao Xu
2024-05-02  4:23 ` [PATCH net-next v3 3/3] selftests/bpf: Add test for the use of new args in cong_control Miao Xu
2024-05-02 23:39   ` Martin KaFai Lau
2024-05-02 23:40 ` [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox