]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: allow using copy mode in XSK
authorXiaoyun Li <xiaoyun.li@intel.com>
Tue, 14 Jun 2022 09:10:13 +0000 (17:10 +0800)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Thu, 23 Jun 2022 10:49:51 +0000 (12:49 +0200)
commitb275e298c11aad100cf7966cdcc6d6cb5d36549a
tree4b9638ebef7cf72c56fe3513e730ed81e06d292f
parentc73dced48c8cf93aed7c28a64846f48ed91895b6
net/af_xdp: allow using copy mode in XSK

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@intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
doc/guides/nics/af_xdp.rst
drivers/net/af_xdp/rte_eth_af_xdp.c