BPF List
 help / color / mirror / Atom feed
* [PATCH 0/2] Allow BPF TCP CCs to write app_limited
@ 2023-03-28 13:20 Yixin Shen
  2023-03-28 13:20 ` [PATCH 1/2] bpf: allow a TCP CC " Yixin Shen
  2023-03-28 13:20 ` [PATCH 2/2] selftests/bpf: test a BPF CC writing app_limited Yixin Shen
  0 siblings, 2 replies; 4+ messages in thread
From: Yixin Shen @ 2023-03-28 13:20 UTC (permalink / raw)
  To: bpf; +Cc: ast, daniel, andrii, martin.lau, song, yhs, bobankhshen

This series allow BPF TCP CCs to write app_limited of struct
tcp_sock. A built-in CC or one from a kernel module is already 
able to write to app_limited of struct tcp_sock. Until now,
a BPF CC doesn't have write access to this member of struct
tcp_sock.

Yixin Shen (2):
  bpf: allow a TCP CC to write app_limited
  selftests/bpf: test a BPF CC writing app_limited

 net/ipv4/bpf_tcp_ca.c                         |  3 +
 .../selftests/bpf/prog_tests/bpf_tcp_ca.c     | 19 +++++
 .../bpf/progs/tcp_ca_write_app_limited.c      | 71 +++++++++++++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 tools/testing/selftests/bpf/progs/tcp_ca_write_app_limited.c

-- 
2.25.1


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

end of thread, other threads:[~2023-03-28 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-28 13:20 [PATCH 0/2] Allow BPF TCP CCs to write app_limited Yixin Shen
2023-03-28 13:20 ` [PATCH 1/2] bpf: allow a TCP CC " Yixin Shen
2023-03-28 13:20 ` [PATCH 2/2] selftests/bpf: test a BPF CC writing app_limited Yixin Shen
2023-03-28 18:31   ` Martin KaFai Lau

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