[PATCH 2/2] net/af_xdp: reserve fill queue before socket create
Ferruh Yigit
ferruh.yigit at intel.com
Fri Feb 18 19:49:03 CET 2022
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.loftus at intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit at intel.com>
More information about the dev
mailing list