Commit 52ce14c1 authored by Adrian Bunk's avatar Adrian Bunk Committed by Jakub Kicinski

bnx2x: Fix enabling network interfaces without VFs

This function is called to enable SR-IOV when available,
not enabling interfaces without VFs was a regression.

Fixes: 65161c35 ("bnx2x: Fix missing error code in bnx2x_iov_init_one()")
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Reported-by: default avatarYunQiang Su <wzssyqa@gmail.com>
Tested-by: default avatarYunQiang Su <wzssyqa@gmail.com>
Cc: stable@vger.kernel.org
Acked-by: default avatarShai Malin <smalin@marvell.com>
Link: https://lore.kernel.org/r/20210912190523.27991-1-bunk@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d198b277
...@@ -1224,7 +1224,7 @@ int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment