]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Add helper function to get the VF's VSI
authorBrett Creeley <brett.creeley@intel.com>
Tue, 2 Mar 2021 18:15:39 +0000 (10:15 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 22 Apr 2021 16:26:22 +0000 (09:26 -0700)
commite40529da5bf957ad4ec5dbc9565bbb4735371ef4
tree1bbeabd3ab222bce1a73c3b958cf8c94a4f39bb3
parent18a024d8ef033efcadefccc54a12dba8c5d33df9
ice: Add helper function to get the VF's VSI

Currently, the driver gets the VF's VSI by using a long string of
dereferences (i.e. vf->pf->vsi[vf->lan_vsi_idx]). If the method to get
the VF's VSI were to change the driver would have to change it in every
location. Fix this by adding the helper ice_get_vf_vsi().

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c