net/af_xdp: enable zero copy by extbuf
PATCH 1/1 net/af_xdp: enable zero copy by extbuf
Implement zero copy of af_xdp pmd through mbuf's external memory mechanism to achieve high performance.
This patch also provides a new parameter "pmd_zero_copy" for user, so they can choose to enable zero copy of af_xdp pmd or not.
To be clear, "zero copy" here is different from the "zero copy mode" of AF_XDP, it is about zero copy between af_xdp umem and mbuf used in dpdk application.
Suggested-by Olivier Matz <[email protected]>
Signed-off-by Xiaolong Ye <[email protected]>
---
This patch is targeted for 19.08.
doc/guides/nics/af_xdp.rst | 1 + drivers/net/af_xdp/rte_eth_af_xdp.c | 96 +++++++++++++++++++++++------ 2 files changed, 77 insertions(+), 20 deletions(-)
doc/guides/nics/af_xdp.rst +1 -0
@@ -28,6 +28,7 @@ The following options can be provided to set up an af_xdp port in DPDK. * ``iface`` - name of the Kernel interface to attach to (required); * ``queue`` - netdev queue id (optional, default 0); +* ``pmd_zero_copy`` - enable zero copy or not (optional, default 0); Prerequisites -------------
drivers/net/af_xdp/rte_eth_af_xdp.c +76 -20
226 lines not on this page · raw message
Signature · 1 line
2.17.1