aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2022-01-03 15:08:09 +0000
committerAlexei Starovoitov <[email protected]>2022-01-06 03:46:32 +0000
commitd53ad5d8b218a885e95080d4d3d556b16b91b1b9 (patch)
tree0de2ccc3ad0064fc8bc1828c8e1dda00225c24d4 /tools/lib/bpf/bpf.c
parentpage_pool: Store the XDP mem id (diff)
downloadkernel-d53ad5d8b218a885e95080d4d3d556b16b91b1b9.tar.gz
kernel-d53ad5d8b218a885e95080d4d3d556b16b91b1b9.zip
xdp: Move conversion to xdp_frame out of map functions
All map redirect functions except XSK maps convert xdp_buff to xdp_frame before enqueueing it. So move this conversion of out the map functions and into xdp_do_redirect(). This removes a bit of duplicated code, but more importantly it makes it possible to support caller-allocated xdp_frame structures, which will be added in a subsequent commit. Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions