[PATCH v8 net-next 0/2] Explicit TSO segment count
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.linux-kselftest,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
From: Chia-Yu Chang <[email protected]> Hello, This series replaces the existing min_tso_segs() congestion control callback with a new tso_segs() callback that allows congestion control algorithms to provide an explicit TSO segment count for each data burst. To support BPF congestion controls, the series also exposes tcp_tso_autosize() as a BPF kfunc, allowing BPF implementations to reuse the kernel TSO autosizing logic while implementing custom tso_segs() callbacks. Changes since v7: - Deprecate bbr_min_tso_segs() kfunc instead of removing it - Add bbr_tso_segs() kfunc - Update tso_segs() callback documentation - Sanitize min_tso_segs in tcp_tso_autosize() - Return the sanitized min_tso_segs value when mss_now == 0 - Update commit messages Thanks, Chia-Yu --- Chia-Yu Chang (2): tcp: Replace min_tso_segs() with tso_segs() CC callback bpf: make tcp_tso_autosize() available to BPF congestion controls include/net/tcp.h | 15 ++++++++-- net/ipv4/bpf_tcp_ca.c | 5 ++-- net/ipv4/tcp_bbr.c | 12 ++++++-- net/ipv4/tcp_output.c | 28 ++++++++++++------- .../selftests/bpf/progs/tcp_ca_kfunc.c | 8 +++--- 5 files changed, 48 insertions(+), 20 deletions(-) -- 2.34.1