mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-20 22:25:23 +00:00
bnx2x: Fix enabling network interfaces without VFs
commit52ce14c134
upstream. This function is called to enable SR-IOV when available, not enabling interfaces without VFs was a regression. Fixes:65161c3555
("bnx2x: Fix missing error code in bnx2x_iov_init_one()") Signed-off-by: Adrian Bunk <bunk@kernel.org> Reported-by: YunQiang Su <wzssyqa@gmail.com> Tested-by: YunQiang Su <wzssyqa@gmail.com> Cc: stable@vger.kernel.org Acked-by: Shai Malin <smalin@marvell.com> Link: https://lore.kernel.org/r/20210912190523.27991-1-bunk@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6860535176
commit
5c687b528a
1 changed files with 1 additions and 1 deletions
|
@ -1224,7 +1224,7 @@ int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param,
|
||||||
|
|
||||||
/* SR-IOV capability was enabled but there are no VFs*/
|
/* SR-IOV capability was enabled but there are no VFs*/
|
||||||
if (iov->total == 0) {
|
if (iov->total == 0) {
|
||||||
err = -EINVAL;
|
err = 0;
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue