Skip to content

bpf: Add bpf_sk_storage support to bpf_tcp_ca

Martin KaFai Lau bpf netdev 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Move the sk_stg_map test immediately after connect() (Yonghong)
- Use global linkage var in bpf_dctcp.c (Yonghong)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: Add bpf_sk_storage support to bpf_tcp_canet/ipv4/bpf_tcp_ca.c+33 -00 replies
2/2bpf: Add tests for bpf_sk_storage to bpf_tcp_catools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c tools/testing/selftests/bpf/progs/bpf_dctcp.c+47 -81 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYonghong Song
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/2] bpf: Add bpf_sk_storage support to bpf_tcp_ca

This set adds bpf_sk_storage support to bpf_tcp_ca. That will allow bpf-tcp-cc to share sk's private data with other bpf_progs and also allow bpf-tcp-cc to use extra private storage if the existing icsk_ca_priv is not enough.

v2:
- Move the sk_stg_map test immediately after connect() (Yonghong)
- Use global linkage var in bpf_dctcp.c (Yonghong)

Martin KaFai Lau (2):
bpf: Add bpf_sk_storage support to bpf_tcp_ca
bpf: Add tests for bpf_sk_storage to bpf_tcp_ca

 net/ipv4/bpf_tcp_ca.c                         | 33 ++++++++++++++++
 .../selftests/bpf/prog_tests/bpf_tcp_ca.c     | 39 +++++++++++++++----
 tools/testing/selftests/bpf/progs/bpf_dctcp.c | 16 ++++++++
 3 files changed, 80 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1