[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230728145908.2d94c01f@kernel.org>
Date: Fri, 28 Jul 2023 14:59:08 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Nambiar, Amritha" <amritha.nambiar@...el.com>
Cc: <netdev@...r.kernel.org>, <davem@...emloft.net>,
<sridhar.samudrala@...el.com>
Subject: Re: [net-next/RFC PATCH v1 1/4] net: Introduce new napi fields for
rx/tx queues
On Wed, 12 Jul 2023 16:53:26 -0700 Jakub Kicinski wrote:
> > The napi pointer in the queue structs would give the napi<->queue
> > mapping, I still need to walk the queues of a NAPI (when there are
> > multiple queues for the NAPI), example:
> > 'napi-id': 600, 'rx-queues': [7,6,5], 'tx-queues': [7,6,5]
> >
> > in which case I would have a list of netdev queue structs within the
> > napi_struct (instead of the list of queue indices that I currently have)
> > to avoid memory allocation.
> >
> > Does this sound right?
>
> yes, I think that's fine.
>
> If we store the NAPI pointer in the queue struct, we can still generate
> the same dump with the time complexity of #napis * (#max_rx + #max_tx).
> Which I don't think is too bad. Up to you.
The more I think about it the more I feel like we should dump queues
and NAPIs separately. And the queue can list the NAPI id of the NAPI
instance which services it.
Are you actively working on this or should I take a stab?
Powered by blists - more mailing lists