qed: Fix the VF msix vectors flow
authorShai Malin <smalin@marvell.com>
Sun, 22 Aug 2021 19:21:14 +0000 (22:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2021 08:22:37 +0000 (09:22 +0100)
commitb0cd08537db8d2fbb227cdb2e5835209db295a24
tree10ba98c47b2e1a7210d40e9103d2810d99f6ee46
parent14315498f5d373097d5082c27c7f764923ec1796
qed: Fix the VF msix vectors flow

For VFs we should return with an error in case we didn't get the exact
number of msix vectors as we requested.
Not doing that will lead to a crash when starting queues for this VF.

Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c