net/af_xdp: enable zero copy by external mbuf
authorXiaolong Ye <xiaolong.ye@intel.com>
Thu, 30 May 2019 09:07:05 +0000 (17:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000 (23:54 +0900)
commite9ff8bb719434c5ee6ccb6f3acbdac246f965875
treeacb43c23d4a0ef35396f984d11ba5d53ea596fcb
parent4586be3743d4c49987973e2025b34abc1e85a377
net/af_xdp: enable zero copy by external mbuf

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: Vipin Varghese <vipin.varghese@intel.com>
Suggested-by: Tummala Sivaprasad <sivaprasad.tummala@intel.com>
Suggested-by: Olivier Matz <olivier.matz@6wind.com>
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
doc/guides/nics/af_xdp.rst
doc/guides/rel_notes/release_19_08.rst
drivers/net/af_xdp/rte_eth_af_xdp.c