]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ice: drop unnecessary VF parameter from several VSI functions
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 19 Jan 2023 01:16:42 +0000 (17:16 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 6 Feb 2023 17:36:09 +0000 (09:36 -0800)
commit157acda5b1faf896cbe46e8860be02baac2b7f83
tree9cc554d622c60b7e455cf1c14f223a974d51ad81
parenta2ca73eae33f4a15304b7f4a71246bb66ded0b80
ice: drop unnecessary VF parameter from several VSI functions

The vsi->vf pointer gets assigned early on during ice_vsi_alloc. Several
functions currently take a VF pointer, but they can just use the existing
vsi->vf pointer as needed. Modify these functions to drop the unnecessary
VF parameter.

Note that ice_vsi_cfg is not changed as a following change will refactor so
that the VF pointer is assigned during ice_vsi_cfg rather than
ice_vsi_alloc.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c