]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix enabling network interfaces without VFs
authorAdrian Bunk <bunk@kernel.org>
Sun, 12 Sep 2021 19:05:23 +0000 (22:05 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Sep 2021 02:26:48 +0000 (19:26 -0700)
commit463e97628a83db6d010e7cbd078949dac69d191e
treea9ad0766a69929600b4402b3e145321af8712aa0
parent70f4f5d676125d132af7c91d6feebd9bc9af29ae
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: 06f9aff19244 ("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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c