Skip to content

bnx2x: Fix enabling network interfaces without VFs

Manish Chopra requested to merge mchopra/centos-stream-9:bz1998304 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1998304 Testing: NIC interfce can be probed with the fix and utilize the network upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

commit 52ce14c134a003fee03d8fc57442c05a55b53715 Author: Adrian Bunk bunk@kernel.org Date: Sun Sep 12 22:05:23 2021 +0300

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: 65161c35554f ("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: Manish Chopra mchopra@redhat.com

Edited by Manish Chopra

Merge request reports