[dpdk-dev] [PATCH v3] net/af_xdp: custom XDP program loading

Ferruh Yigit ferruh.yigit at intel.com
Wed Sep 30 17:20:14 CEST 2020


On 9/25/2020 10:20 AM, Ciara Loftus wrote:
> 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 at intel.com>
> Tested-by: Xuekun Hu <xuekun.hu at intel.com>

Applied to dpdk-next-net/main, thanks.



More information about the dev mailing list