[Intel-wired-lan] [iwl-next v7 6/9] ice: treat dyn_allowed only as suggestion
Pucha, HimasekharX Reddy
himasekharx.reddy.pucha at intel.com
Thu Nov 14 14:09:54 UTC 2024
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Michal Swiatkowski
> Sent: 04 November 2024 17:44
> To: intel-wired-lan at lists.osuosl.org
> Cc: pmenzel at molgen.mpg.de; Drewek, Wojciech <wojciech.drewek at intel.com>; Szycik, Marcin <marcin.szycik at intel.com>; netdev at vger.kernel.org; Knitter, Konrad <konrad.knitter at intel.com>; Chmielewski, Pawel <pawel.chmielewski at intel.com>; horms at kernel.org; David.Laight at ACULAB.COM; NEX SW NCIS NAT HPM DEV <nex.sw.ncis.nat.hpm.dev at intel.com>; pio.raczynski at gmail.com; Samudrala, Sridhar <sridhar.samudrala at intel.com>; Keller, Jacob E <jacob.e.keller at intel.com>; jiri at resnulli.us; Kitszel, Przemyslaw <przemyslaw.kitszel at intel.com>
> Subject: [Intel-wired-lan] [iwl-next v7 6/9] ice: treat dyn_allowed only as suggestion
>
> It can be needed to have some MSI-X allocated as static and rest as dynamic. For example on PF VSI. We want to always have minimum one MSI-X on it, because of that it is allocated as a static one, rest can be dynamic if it is supported.
>
> Change the ice_get_irq_res() to allow using static entries if they are free even if caller wants dynamic one.
>
> Adjust limit values to the new approach. Min and max in limit means the values that are valid, so decrease max and num_static by one.
>
> Set vsi::irq_dyn_alloc if dynamic allocation is supported.
>
> Reviewed-by: Jacob Keller <jacob.e.keller at intel.com>
> Reviewed-by: Wojciech Drewek <wojciech.drewek at intel.com>
> Signed-off-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_irq.c | 25 ++++++++++++------------ drivers/net/ethernet/intel/ice/ice_lib.c | 2 ++
> 2 files changed, 15 insertions(+), 12 deletions(-)
>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list