bpf: allow a TCP CC to write app_limited
authorYixin Shen <bobankhshen@gmail.com>
Wed, 29 Mar 2023 07:35:57 +0000 (07:35 +0000)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 29 Mar 2023 20:10:56 +0000 (13:10 -0700)
commit562dc56a88983421a6c5a46e0feb891873d118a1
treed503b09b0383433a217cece89917c29688a1e18f
parentd8d8b008629ffd69f1e204010cb3299bb633877e
bpf: allow a TCP CC to write app_limited

A CC that implements tcp_congestion_ops.cong_control() should be able to
write app_limited. A built-in CC or one from a kernel module is already
able to write to this member of struct tcp_sock.
For a BPF program, write access has not been allowed, yet.

Signed-off-by: Yixin Shen <bobankhshen@gmail.com>
Link: https://lore.kernel.org/r/20230329073558.8136-2-bobankhshen@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
net/ipv4/bpf_tcp_ca.c