netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [net-next 2/2] ena: Link queues to NAPIs
@ 2024-10-01 16:40 Arinzon, David
  2024-10-01 18:07 ` Joe Damato
  0 siblings, 1 reply; 7+ messages in thread
From: Arinzon, David @ 2024-10-01 16:40 UTC (permalink / raw)
  To: Joe Damato
  Cc: netdev@vger.kernel.org, Agroskin, Shay, Kiyanovski, Arthur,
	Dagan, Noam, Bshara, Saeed, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Kamal Heib, open list,
	Bernstein, Amit

> > > >
> > > > Thank you for uploading this patch.
> > >
> > > Can you please let me know (explicitly) if you want me to send a
> > > second revision (when net-next allows for it) to remove the 'struct
> > > napi_struct' and add a comment as described above?
> >
> > Yes, I would appreciate that.
> > I guess the `struct napi_struct` is OK, this way both functions will look the
> same.
> > Regarding the comment, yes please, something like /* This API is
> supported for non-XDP queues only */ in both places.
> > I also added a small request to preserve reverse christmas tree order on
> patch 1/2 in the series.
> 
> Thanks for mentioning the nit about reverse christmas tree order; I missed
> that.
> 
> I will:
>   - Fix the ordering of the variables in 1/2
>   - Add 2 comments in 2/2
> 
> I'll have to wait the ~48hr timeout before I can post the v2, but I'll be sure to
> CC you on the next revision.

It's not at least a 24hr timeout?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/maintainer-netdev.rst#n394

> 
> > Thank you again for the patches in the driver.
> 
> No worries, thanks for the review.
> 
> BTW: Since neither of the changes you've asked me to make are functional
> changes, would you mind testing the driver changes on your side just to
> make sure? I tested them myself on an ec2 instance with an ENA driver, but I
> am not an expert on ENA :)
> 
> - Joe

I picked up the patch and got to the same results that you did when running on an EC2 instance.
Thank you for sharing the commands in the commit messages, it was really helpful.
Correct me if I'm wrong, but there's no functional impact to these changes except the ability to
view the mappings through netlink.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [net-next 0/2] ena: Link IRQs, queues, and NAPI instances
@ 2024-09-30 19:56 Joe Damato
  2024-09-30 19:56 ` [net-next 2/2] ena: Link queues to NAPIs Joe Damato
  0 siblings, 1 reply; 7+ messages in thread
From: Joe Damato @ 2024-09-30 19:56 UTC (permalink / raw)
  To: netdev
  Cc: Joe Damato, Arthur Kiyanovski, David Arinzon, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Kamal Heib, open list, Noam Dagan,
	Paolo Abeni, Saeed Bishara, Shay Agroskin

Greetings:

This series uses the netdev-genl API to link IRQs and queues to NAPI IDs
so that this information is queryable by user apps. This is particularly
useful for epoll-based busy polling apps which rely on having access to
the NAPI ID.

I've tested these commits on an EC2 instance with an ENA NIC configured
and have included test output in the commit messages for each patch
showing how to query the information.

I noted in the implementation that the driver requests an IRQ for
management purposes which does not have an associated NAPI. I tried to
take this into account in patch 1, but would appreciate if ENA
maintainers can verify I did this correctly.

Thanks,
Joe

Joe Damato (2):
  ena: Link IRQs to NAPI instances
  ena: Link queues to NAPIs

 drivers/net/ethernet/amazon/ena/ena_netdev.c | 38 +++++++++++++++++---
 1 file changed, 33 insertions(+), 5 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-01 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 16:40 [net-next 2/2] ena: Link queues to NAPIs Arinzon, David
2024-10-01 18:07 ` Joe Damato
  -- strict thread matches above, loose matches on Subject: below --
2024-09-30 19:56 [net-next 0/2] ena: Link IRQs, queues, and NAPI instances Joe Damato
2024-09-30 19:56 ` [net-next 2/2] ena: Link queues to NAPIs Joe Damato
2024-10-01  9:06   ` Arinzon, David
2024-10-01 14:28     ` Joe Damato
2024-10-01 15:50       ` Arinzon, David
2024-10-01 16:21         ` Joe Damato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).