]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Set vsi->vf_id as ICE_INVAL_VFID for non VF VSI types
authorBrett Creeley <brett.creeley@intel.com>
Wed, 31 Mar 2021 21:17:04 +0000 (14:17 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 15 Apr 2021 00:12:05 +0000 (17:12 -0700)
commitef9d52b3159feb5655ebe13fe4a907f23db56a22
treebef438f7d7458f23d780b826babfc5aa64d78f65
parenteec910f607ce3ebfe37816f080a4f3156fc1e551
ice: Set vsi->vf_id as ICE_INVAL_VFID for non VF VSI types

Currently the vsi->vf_id is set only for ICE_VSI_VF and it's left as 0
for all other VSI types. This is confusing and could be problematic
since 0 is a valid vf_id. Fix this by always setting non VF VSI types to
ICE_INVAL_VFID.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c