Skip to content

Commit 84da600

Browse files
AdrianBunkgregkh
authored andcommitted
bnx2x: Fix enabling network interfaces without VFs
commit 52ce14c upstream. This function is called to enable SR-IOV when available, not enabling interfaces without VFs was a regression. Fixes: 65161c3 ("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>
1 parent 1a5a3ba commit 84da600

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param,
12251225

12261226
/* SR-IOV capability was enabled but there are no VFs*/
12271227
if (iov->total == 0) {
1228-
err = -EINVAL;
1228+
err = 0;
12291229
goto failed;
12301230
}
12311231

0 commit comments

Comments
 (0)