numam-dpdk/drivers/net/af_xdp
Ciara Loftus 6dd3286f3a net/af_xdp: fix shared UMEM fill queue reserve
Commit 81fe6720f8 ("net/af_xdp: reserve fill queue before socket create")
moves the fill queue reserve logic to before the creation of the socket in
order to suppress kernel logs like:

XSK buffer pool does not provide enough addresses to fill 2047 buffers on
Rx ring 0

However, for queues that share umem, the fill queue reserve must occur
after the socket creation, because the fill queue is not valid until
that point.

This commit uses the umem refcnt value to determine whether the queue is
sharing a umem, and performs the fill queue reservation either before or
after the socket creation, depending on the refcnt value.

The kernel logs will still be seen for the shared umem queues.

Fixes: 81fe6720f8 ("net/af_xdp: reserve fill queue before socket create")

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
2022-03-14 10:48:18 +01: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: make compatible with libbpf >= 0.7.0 2022-02-18 11:37:34 +01:00
meson.build net/af_xdp: make compatible with libbpf >= 0.7.0 2022-02-18 11:37:34 +01:00
rte_eth_af_xdp.c net/af_xdp: fix shared UMEM fill queue reserve 2022-03-14 10:48:18 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00