pull-request: bpf-next 2025-03-06

Martin KaFai Lau
2025-03-07T05:53:45Z

Hi David, hi Jakub, hi Paolo, hi Eric,

The following pull-request contains BPF updates for your *net-next* tree.

We've added 6 non-merge commits during the last 13 day(s) which contain
a total of 6 files changed, 230 insertions(+), 56 deletions(-).

The main changes are:

1) Add XDP metadata support for tun driver, from Marcus Wichelmann.

Please consider pulling these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tags/for-netdev

Thanks a lot!

Also thanks to reporters, reviewers and testers of commits in this pull-request:

Jason Wang, Willem de Bruijn

----------------------------------------------------------------

The following changes since commit b66e19dcf684b21b6d3a1844807bd1df97ad197a:

Merge branch 'mctp-add-mctp-over-usb-hardware-transport-binding' (2025-02-21 16:45:26 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tags/for-netdev

for you to fetch changes up to 72aad21de5f65bea60c3064ad463b3793fb4b1c6:

Merge branch 'xdp-metadata-support-for-tun-driver' (2025-03-06 12:31:09 -0800)

----------------------------------------------------------------
bpf-next-for-netdev

----------------------------------------------------------------
Marcus Wichelmann (6):
net: tun: Enable XDP metadata support
net: tun: Enable transfer of XDP metadata to skb
selftests/bpf: Move open_tuntap to network helpers
selftests/bpf: Refactor xdp_context_functional test and bpf program
selftests/bpf: Add test for XDP metadata support in tun driver
selftests/bpf: Fix file descriptor assertion in open_tuntap helper

Martin KaFai Lau (1):
Merge branch 'xdp-metadata-support-for-tun-driver'

drivers/net/tun.c | 28 +++-
tools/testing/selftests/bpf/network_helpers.c | 28 ++++
tools/testing/selftests/bpf/network_helpers.h | 3 +
.../testing/selftests/bpf/prog_tests/lwt_helpers.h | 29 -----
.../bpf/prog_tests/xdp_context_test_run.c | 145 ++++++++++++++++++++-
tools/testing/selftests/bpf/progs/test_xdp_meta.c | 53 +++++---
6 files changed, 230 insertions(+), 56 deletions(-)