mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
bpf: make tcp_tso_autosize() available to BPF congestion controls
Expose tcp_tso_autosize() as a BPF kfunc and register it in the TCP congestion-control kfunc set. This allows BPF congestion controls to reuse the kernel TSO autosizing logic while applying their own minimum TSO segment policy. To make the kfunc robust against BPF-provided inputs, min_tso_segs is sanitized to at least 1 and mss_now == 0 returns the sanitized minimum value instead of performing autosizing. Signed-off-by: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
cb145191e9
commit
f69a094441
2 changed files with 12 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue