numam-dpdk/drivers/net/af_xdp
Ciara Loftus b42cffab05 net/af_xdp: use recvfrom only if busy polling enabled
The recvfrom() syscall is only supported by AF_XDP sockets since
kernel 5.11. Only use it if busy polling is configured. We can
assume a kernel >= 5.11 is in use if busy polling is configured
so we can safely call recvfrom() in that case.

Fixes: 63e8989fe5 ("net/af_xdp: use recvfrom instead of poll syscall")

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
2021-04-20 12:09:33 +02:00
..
af_xdp_deps.h net/af_xdp: introduce AF_XDP PMD 2019-04-05 17:45:22 +02:00
compat.h net/af_xdp: use recvfrom only if busy polling enabled 2021-04-20 12:09:33 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
rte_eth_af_xdp.c net/af_xdp: use recvfrom only if busy polling enabled 2021-04-20 12:09:33 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00