ice: refactor VF control VSI interrupt handling
authorPiotr Raczynski <piotr.raczynski@intel.com>
Mon, 15 May 2023 19:03:15 +0000 (21:03 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 16 May 2023 16:38:30 +0000 (09:38 -0700)
commit369bb5a2a9a76ab6ea2945962d09baa21b4e1a4f
treea8a0c43c9dc39a6a76a471d43aee1881a113d4ab
parent05018936a1fe07b92a612d1fd1511224ba8a1a34
ice: refactor VF control VSI interrupt handling

All VF control VSIs share the same interrupt vector. Currently, a helper
function dedicated for that directly sets ice_vsi::base_vector.

Use helper that returns pointer to first found VF control VSI instead.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Piotr Raczynski <piotr.raczynski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_vf_lib.c
drivers/net/ethernet/intel/ice/ice_vf_lib.h