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

Tahhan, Maryam maryam.tahhan at intel.com
Thu Sep 10 13:40:04 CEST 2020



> -----Original Message-----
> From: Loftus, Ciara <ciara.loftus at intel.com>
> Sent: Friday 28 August 2020 12:18
> To: dev at dpdk.org
> Cc: Loftus, Ciara <ciara.loftus at intel.com>
> Subject: [PATCH] net/af_xdp: 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.
> Note: a netdev may only load one program.
> 
> Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
> ---

[MT] Stupid question :), AF_XDP is specifically related to loading an XDP program that allows you to redirect packets to an XSK... 
why would you want to allow a custom XDP program to be loaded? 

Other than that the code itself looked GTM

<snip>


More information about the dev mailing list