Re: [net-next v5 9/9] mlx4: Add support for persistent NAPI config to RX CQs
From: Joe Damato
Date: Thu Oct 10 2024 - 12:07:51 EST
On Thu, Oct 10, 2024 at 06:28:59AM +0200, Eric Dumazet wrote:
> On Wed, Oct 9, 2024 at 2:56 AM Joe Damato <jdamato@xxxxxxxxxx> wrote:
> >
> > Use netif_napi_add_config to assign persistent per-NAPI config when
> > initializing RX CQ NAPIs.
> >
> > Presently, struct napi_config only has support for two fields used for
> > RX, so there is no need to support them with TX CQs, yet.
> >
> > Signed-off-by: Joe Damato <jdamato@xxxxxxxxxx>
> > ---
>
> nit: technically, the napi_defer_hard_irqs could benefit TX completions as well.
That's true - I think I missed updating this commit message when I
realized it. I can correct the commit message while retaining your
Reviewed-by for the v6.
Note: This adds to the confusion I have around the support for
allocating max(rxqs, txqs) config structs; it would seem we'll be
missing config structure for some queues if the system is configured
to use the maximum number of each? Perhaps that configuration is
uncommon enough that it doesn't matter?
> Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>