]> git.baikalelectronics.ru Git - kernel.git/commit
ice: add missing checks for PF vsi type
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 14 Dec 2022 00:01:31 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:55 +0000 (16:43 +0100)
commit8c05331567bc73a95fa13cab3cae315d743f747a
tree919bc88c0038cd59adfd9afb904f97ceea5a085b
parentc91f96b280d3b41e5aaeea6dcd6bc6dfca8bb650
ice: add missing checks for PF vsi type

[ Upstream commit 6a8d013e904ad9a66706fcc926ec9993bed7d190 ]

There were a few places we had missed checking the VSI type to make sure
it was definitely a PF VSI, before calling setup functions intended only
for the PF VSI.

This doesn't fix any explicit bugs but cleans up the code in a few
places and removes one explicit != vsi->type check that can be
superseded by this code (it's a super set)

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c