On 2/18/2022 11:20 AM, Ciara Loftus wrote:
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
I confirm the above log is gone with the patch,
for the record I am seeing below instead now:
[ +0.346578] ice 0000:86:00.1: Registered XDP mem model MEM_TYPE_XSK_BUFF_POOL
on Rx ring 0
[ +0.032472] device enp134s0f1 left promiscuous mode
This commit ensures that the addresses are available before creating the
socket, instead of after.
Signed-off-by: Ciara Loftus<ciara.lof...@intel.com>
Tested-by: Ferruh Yigit <ferruh.yi...@intel.com>