net/af_xdp: support need wakeup feature
authorXiaolong Ye <xiaolong.ye@intel.com>
Fri, 28 Jun 2019 10:07:04 +0000 (18:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:32:18 +0000 (20:32 +0200)
commit45bba02c95b0bae9097b793f2a5794c738b1ea84
tree66a1769616dadf1f2b7d950326dde3d435e42e89
parent39a94299195f3329a28a3556e2431b9d6b83b222
net/af_xdp: support need wakeup feature

This patch enables need_wakeup flag for Tx and fill rings, when this
flag is set by the driver, it means that the userspace application has
to explicitly wake up the kernel Rx or kernel Tx processing by issuing
a syscall. Poll() can wake up both and sendto() or its alternatives
will wake up Tx processing only.

This feature is to provide efficient support for case that application
and driver executing on the same core.

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@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