BPF metadata for direct access
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 22 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | bpf: rename bpf_compute_data_end into bpf_compute_data_pointersinclude/ kernel/ net/ +4 more | +21 | 0 replies | |
| 2/6 | bpf: add meta pointer for direct accessdrivers/ drivers/ drivers/ +16 more | +297 | 17 replies | |
| 3/6 | bpf: update bpf.h uapi header for toolstools/ | +32 | 2 replies | |
| 4/6 | bpf: improve selftests and add tests for meta pointertools/ tools/ tools/ +2 more | +370 | 0 replies | |
| 5/6 | bpf, nfp: add meta data supportdrivers/ | +15 | 1 reply | |
| 6/6 | bpf, ixgbe: add meta data supportdrivers/ | +26 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov | John Fastabend | Jakub Kicinski | Jesper Dangaard Brouer |
|---|---|---|---|---|
| 1/6 | A-b | A-b | ||
| 2/6 | A-b | A-b | ||
| 3/6 | A-b | A-b | A-b | |
| 4/6 | A-b | A-b | ||
| 5/6 | A-b | A-b | R-b | |
| 6/6 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH net-next 0/6] BPF metadata for direct access
This work enables generic transfer of metadata from XDP into skb, meaning the packet has a flexible and programmable room for meta data, which can later be used by BPF to set various skb members when passing up the stack. For details, please see second patch. Support has been implemented and tested with two drivers, and should be straight forward to add to other drivers as well which properly support head adjustment already.
Thanks!
Daniel Borkmann (6):
bpf: rename bpf_compute_data_end into bpf_compute_data_pointers
bpf: add meta pointer for direct access
bpf: update bpf.h uapi header for tools
bpf: improve selftests and add tests for meta pointer bpf, nfp: add meta data support
bpf, ixgbe: add meta data support
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 1 + drivers/net/ethernet/cavium/thunder/nicvf_main.c | 1 + drivers/net/ethernet/intel/i40e/i40e_txrx.c | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 29 ++- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 1 + drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 1 + .../net/ethernet/netronome/nfp/nfp_net_common.c | 39 ++-- drivers/net/ethernet/qlogic/qede/qede_fp.c | 1 + drivers/net/tun.c | 1 + drivers/net/virtio_net.c | 2 + include/linux/bpf.h | 1 + include/linux/filter.h | 30 ++- include/linux/skbuff.h | 68 +++++- include/uapi/linux/bpf.h | 13 +- kernel/bpf/sockmap.c | 4 +- kernel/bpf/verifier.c | 114 +++++++--- net/bpf/test_run.c | 3 +- net/core/dev.c | 31 ++- net/core/filter.c | 91 +++++++- net/core/lwt_bpf.c | 2 +- net/core/skbuff.c | 2 + net/sched/act_bpf.c | 4 +- net/sched/cls_bpf.c | 4 +- tools/include/uapi/linux/bpf.h | 45 ++-- tools/testing/selftests/bpf/Makefile | 21 +- tools/testing/selftests/bpf/bpf_helpers.h | 2 + tools/testing/selftests/bpf/test_verifier.c | 247 +++++++++++++++++++++ tools/testing/selftests/bpf/test_xdp_meta.c | 53 +++++ tools/testing/selftests/bpf/test_xdp_meta.sh | 51 +++++ 29 files changed, 759 insertions(+), 104 deletions(-) create mode 100644 tools/testing/selftests/bpf/test_xdp_meta.c create mode 100755 tools/testing/selftests/bpf/test_xdp_meta.sh
Signature · 1 line
1.9.3