qed: Fix the VF msix vectors flow
authorShai Malin <smalin@marvell.com>
Sun, 22 Aug 2021 19:21:14 +0000 (22:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Sep 2021 06:49:00 +0000 (08:49 +0200)
commitcf50d02e474be9f0d6f2fed9aecf4dc90cc6e729
treec80a00d398aaadf1841c5a66ec66ec312eaaa3e5
parent2177c4943e40e6f04a78e506faaacda0384e3e89
qed: Fix the VF msix vectors flow

[ Upstream commit b0cd08537db8d2fbb227cdb2e5835209db295a24 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_main.c