[PATCH] net/iavf: fix large vf queues cannot re-use.

Zhang, Qi Z qi.z.zhang at intel.com
Mon May 15 04:25:38 CEST 2023



> -----Original Message-----
> From: Shiyang He <shiyangx.he at intel.com>
> Sent: Tuesday, May 9, 2023 12:58 AM
> To: dev at dpdk.org
> Cc: Zhou, YidingX <yidingx.zhou at intel.com>; He, ShiyangX
> <shiyangx.he at intel.com>; stable at dpdk.org; Wu, Jingjing
> <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>; Xu, Ting
> <ting.xu at intel.com>
> Subject: [PATCH] net/iavf: fix large vf queues cannot re-use.
>
> Multiple vfs created based on one PF. If one of the vf requests a large
> number of queues, the queue resources are not released when exiting the
> program, resulting in these queues cannot be available to other vfs.
>
> This commit fixes the issue by resetting the number of queues to default
> when closing the dev (refer to the kernel driver) .
>
> Fixes: e436cd43835b ("net/iavf: negotiate large VF and request more
> queues")
> Cc: stable at dpdk.org
>
> Signed-off-by: Shiyang He <shiyangx.he at intel.com>

I assume this is a workaround, as the queue resources may not be released if the PMD quits abnormally. A robust solution would rely on the kernel driver to reclaim the resources during a VF reset.
Nevertheless, this fix is not harmful and provides temporary relief for the issue until a proper solution can be implemented in the kernel driver.

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi




More information about the stable mailing list