[PATCH v2] net/af_xdp: allow using copy mode in XSK

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Thu Jun 23 12:52:30 CEST 2022


On 6/14/22 12:10, Xiaoyun Li wrote:
> DPDK assumes that users only want AF_XDP socket (XSK) into zero copy
> mode when the kernel supports it. However, sometimes kernel driver
> doesn't support it well and copy mode is more stable and preferred.
> 
> This patch allows using devarg "-a xx:xx.x,force_copy=1" to force the
> AF_XDP socket into copy mode.
> 
> Signed-off-by: Xiaoyun Li <xiaoyun.li at intel.com>
> ---
> v2:
> * Change name from no_zerocopy to force_copy.
> ---

Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>

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


More information about the dev mailing list