> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Michal > Swiatkowski > Sent: Monday, November 4, 2024 1:14 PM > To: [email protected] > Cc: [email protected]; Drewek, Wojciech <[email protected]>; > Szycik, Marcin <[email protected]>; [email protected]; Knitter, > Konrad <[email protected]>; Chmielewski, Pawel > <[email protected]>; [email protected]; > [email protected]; NEX SW NCIS NAT HPM DEV > <[email protected]>; [email protected]; Samudrala, > Sridhar <[email protected]>; Keller, Jacob E > <[email protected]>; [email protected]; Kitszel, Przemyslaw > <[email protected]> > Subject: [Intel-wired-lan] [iwl-next v7 8/9] 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). > > Signed-off-by: Michal Swiatkowski <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice.h | 10 +- > drivers/net/ethernet/intel/ice/ice_irq.c | 75 +++++++--- > drivers/net/ethernet/intel/ice/ice_irq.h | 13 +- > drivers/net/ethernet/intel/ice/ice_sriov.c | 154 ++------------------- > 4 files changed, 79 insertions(+), 173 deletions(-) > > diff --git a/drivers/net/ethernet/intel/ice/ice.h > b/drivers/net/ethernet/intel/ice/ice.h > index 14a90c916d43..7200d6042590 100644 > --- a/drivers/net/ethernet/intel/ice/ice.h > +++ b/drivers/net/ethernet/intel/ice/ice.h > @@ -544,6 +544,8 @@ struct ice_pf_msix {
Tested-by: Rafal Romanowski <[email protected]>
