[PATCH] net/nfp: check whether the generated VF can be used

Ferruh Yigit ferruh.yigit at amd.com
Thu Jan 19 10:09:44 CET 2023


On 12/9/2022 1:35 AM, Chaoyong He wrote:
> From: Peng Zhang <peng.zhang at corigine.com>
> 
> All the queue pairs are shared between VF and PF for NFP,
> and there exist different assignment policy for different
> firmware application.
> 
> The user can create VFs up to the max number of queue pairs,
> which will cause the last few VFs has no queue pairs and
> cannot be used, because PF must occupy some queue pairs by
> default.
> 
> This commit add check to prevent this kind of VFs be used.
> 
> Signed-off-by: Peng Zhang <peng.zhang at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list