]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ice: simplify VF MSI-X managing
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tue, 3 Dec 2024 06:58:16 +0000 (07:58 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 5 Feb 2025 17:04:57 +0000 (09:04 -0800)
commita203163274a48501c88d96625c173773e3d7c6a0
treed0371d9f84fc8f83da69e99e5c173c771079e13e
parent87181cd6985fbd591ba2b7b7c5ab9772c7cab689
ice: simplify VF MSI-X managing

After implementing pf->msix.max field, base vector for other use cases
(like VFs) can be fixed. This simplify code when changing MSI-X amount
on particular VF, because there is no need to move a base vector.

A fixed base vector allows to reserve vectors from the beginning
instead of from the end, which is also simpler in code.

Store total and rest value in the same struct as max and min for PF.
Move tracking vectors from ice_sriov.c to ice_irq.c as it can be also
use for other none PF use cases (SIOV).

Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_irq.c
drivers/net/ethernet/intel/ice/ice_irq.h
drivers/net/ethernet/intel/ice/ice_sriov.c