]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: reserve fill queue before socket create
authorCiara Loftus <ciara.loftus@intel.com>
Fri, 18 Feb 2022 11:20:37 +0000 (11:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Feb 2022 18:48:17 +0000 (19:48 +0100)
commit81fe6720f84fde2a9fe65f688d7895ca348f0738
treed232e107009dbbd8839eaafb5ac03ed9087ee051
parentb26431a617e4039e6c0f65c5ee56f62f347b686b
net/af_xdp: reserve fill queue before socket create

Some zero copy AF_XDP drivers eg. ice require that there are addresses
already in the fill queue before the socket is created. Otherwise you may
see log messages such as:

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

This commit ensures that the addresses are available before creating the
socket, instead of after.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c