numam-dpdk/drivers/net/af_xdp
Ciara Loftus 288a85aef1 net/af_xdp: enable custom XDP program loading
The new 'xdp_prog=<string>' vdev arg allows the user to specify the path to
a custom XDP program to be set on the device, instead of the default libbpf
one. The program must have an XSK_MAP of name 'xsks_map' which will allow
for the redirection of some packets to userspace and thus the PMD, using
some criteria defined in the program. This can be useful for filtering
purposes, for example if we only want a subset of packets to reach
userspace or to drop or process a subset of packets in the kernel.

Note: a netdev may only load one program.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Tested-by: Xuekun Hu <xuekun.hu@intel.com>
2020-09-30 19:19:15 +02:00
..
af_xdp_deps.h net/af_xdp: introduce AF_XDP PMD 2019-04-05 17:45:22 +02:00
compat.h net/af_xdp: support shared UMEM 2020-09-30 19:19:09 +02:00
meson.build net/af_xdp: support shared UMEM 2020-09-30 19:19:09 +02:00
rte_eth_af_xdp.c net/af_xdp: enable custom XDP program loading 2020-09-30 19:19:15 +02:00
rte_pmd_af_xdp_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00