]> www.infradead.org Git - linux-platform-drivers-x86.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)
commitc5afbe99b778c15254d4496a74d3252ef6ba0a14
tree1bbeabd3ab222bce1a73c3b958cf8c94a4f39bb3
parentc9b5f681fe418d68f1804512c7fbcd5920d0594e
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