bpf: tcp: Add bpf_cubic example
Status from this message: Applied. Thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyApplied
- v23 patches 2 repliesSuperseded
- v13 patches 4 repliesSuperseded
Changes in v3 from the cover letter
- Remove __weak from CONFIG_HZ in patch 3. (Andrii)
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: Add BPF_FUNC_jiffies64include/ include/ kernel/ +3 more | +48 | 0 replies | |
| 2/3 | bpf: Sync uapi bpf.h to tools/tools/ | +8 | 0 replies | |
| 3/3 | bpf: tcp: Add bpf_cubic exampletools/ tools/ tools/ | +585 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 bpf-next 0/3] bpf: tcp: Add bpf_cubic example
This set adds bpf_cubic.c example. It was separated from the earlier BPF STRUCT_OPS series. Some highlights since the last post:
1. It is based on EricD recent fixes to the kernel tcp_cubic. [1]
2. The bpf jiffies reading helper is inlined by the verifier. Different from the earlier version, it only reads jiffies alone and does not do usecs/jiffies conversion.
3. The bpf .kconfig map is used to read CONFIG_HZ.
[1]: https://patchwork.ozlabs.org/cover/1215066/
v3:
- Remove __weak from CONFIG_HZ in patch 3. (Andrii)
v2:
- Move inlining to fixup_bpf_calls() in patch 1. (Daniel)
- It is inlined for 64 BITS_PER_LONG and jit_requested as the map_gen_lookup(). Other cases could be considered together with map_gen_lookup() if needed.
- Use usec resolution in bictcp_update() calculation in patch 3. usecs_to_jiffies() is then removed(). (Eric)
Martin KaFai Lau (3):
bpf: Add BPF_FUNC_jiffies64
bpf: Sync uapi bpf.h to tools/
bpf: tcp: Add bpf_cubic example
include/linux/bpf.h | 1 + include/uapi/linux/bpf.h | 9 +- kernel/bpf/core.c | 1 + kernel/bpf/helpers.c | 12 + kernel/bpf/verifier.c | 24 + net/core/filter.c | 2 + tools/include/uapi/linux/bpf.h | 9 +- tools/testing/selftests/bpf/bpf_tcp_helpers.h | 16 + .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 25 + tools/testing/selftests/bpf/progs/bpf_cubic.c | 544 ++++++++++++++++++ 10 files changed, 641 insertions(+), 2 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/bpf_cubic.c
Signature · 1 line
2.17.1