bpf: introduce new helper udp_flow_src_port
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | bpf: introduce new helper udp_flow_src_portinclude/ net/ tools/ +3 more | +131 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] bpf: introduce new helper udp_flow_src_port
This is a submission to expose a new eBPF helper method to allow access to udp_flow_src_port -- which is useful when doing any Foo Over UDP network tunneling.
I hope this change adheres to the submission guidelines. I've included a test and verified it passes:
./test_progs -t udp_flow_src_port
#31 udp_flow_src_port:OK
Summary: 1/0 PASSED, 0 FAILED
* shoutout to https://github.com/g2p/vido/blob/master/vido
which made testing the kernel + change super easy * (This is my first contribution)
Farid Zakaria (1):
bpf: introduce new helper udp_flow_src_port
include/uapi/linux/bpf.h | 21 +++++++-- net/core/filter.c | 20 ++++++++ tools/include/uapi/linux/bpf.h | 21 +++++++-- tools/testing/selftests/bpf/bpf_helpers.h | 2 + .../bpf/prog_tests/udp_flow_src_port.c | 28 +++++++++++ .../bpf/progs/test_udp_flow_src_port_kern.c | 47 +++++++++++++++++++ 6 files changed, 131 insertions(+), 8 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/udp_flow_src_port.c create mode 100644 tools/testing/selftests/bpf/progs/test_udp_flow_src_port_kern.c
Signature · 1 line
2.21.0