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 -- 2.21.0