Ajit Khaparde 8496483099 net/bnxt: fix VF resource allocation strategy
1. VFs need a notification queue to handle async messages.
But the current logic does not reserve a notification queue leading
to initialization failure in some cases.
2. With the current logic, DPDK PF driver reserves only one VNIC
to the VFs leading to initialization failure with more than 1 RXQs.

Added logic to distribute number of NQs and VNICs from the pool
across VFs and PF.

While reserving resources for the VFs, the strategy is to keep
both min & max values the same. This could result in a failure
when there isn't enough resources to satisfy the request.
Hence fixed to instruct the FW to not reserve all minimum
resources requested for the VF. The VF driver can request the FW
for the allocated resources during probe.

Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
2022-01-25 05:45:28 +01:00
..
2021-01-29 18:16:10 +01:00
2022-01-12 02:59:42 +01:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2022-01-12 03:07:26 +01:00
2021-04-24 21:23:09 +02:00
2022-01-12 02:59:42 +01:00
2021-01-29 18:16:10 +01:00
2022-01-12 02:59:58 +01:00
2021-10-22 18:15:38 +02:00
2021-01-29 18:16:10 +01:00
2021-08-17 08:37:52 +02:00