]> git.baikalelectronics.ru Git - kernel.git/commit
ice: remove PF pointer from ice_check_vf_init
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 23 Feb 2022 00:27:12 +0000 (16:27 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 15 Mar 2022 20:23:14 +0000 (13:23 -0700)
commitfdf5a12417c8c9304a0702d97b9d9863e2fc11c0
tree817851afc5b9f8403d0e22f2e31008b23ceeceb7
parent6b88bfb5a14ab56ebc7cfa8dda4f070848cb93a5
ice: remove PF pointer from ice_check_vf_init

The ice_check_vf_init function takes both a PF and a VF pointer. Every
caller looks up the PF pointer from the VF structure. Some callers only
use of the PF pointer is call this function. Move the lookup inside
ice_check_vf_init and drop the unnecessary argument.

Cleanup the callers to drop the now unnecessary local variables. In
particular, replace the local PF pointer with a HW structure pointer in
ice_vc_get_vf_res_msg which simplifies a few accesses to the HW
structure in that function.

Signed-off-by: Jacob Keller <jacob.e.keller@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_vf_lib.c
drivers/net/ethernet/intel/ice/ice_vf_lib_private.h
drivers/net/ethernet/intel/ice/ice_virtchnl.c