netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Of ena auto_polling
@ 2024-11-02 19:01 Dr. David Alan Gilbert
  2024-11-03 19:02 ` Arinzon, David
  0 siblings, 1 reply; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2024-11-02 19:01 UTC (permalink / raw)
  To: shayagr, akiyano; +Cc: darinzon, ndagan, saeedb, netdev

Hi,
  I noticed that commit:
commit a4e262cde3cda4491ce666e7c5270954c4d926b9
Author: Sameeh Jubran <sameehj@amazon.com>
Date:   Mon Jun 3 17:43:25 2019 +0300

    net: ena: allow automatic fallback to polling mode

added a 'ena_com_set_admin_auto_polling_mode()' that's unused.
Is that the intention?
Because that then makes me wonder how
admin_queue->auto_polling
gets set, and then if the whole chunk is unused?

Thanks,

Dave
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

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

* RE: Of ena auto_polling
  2024-11-02 19:01 Of ena auto_polling Dr. David Alan Gilbert
@ 2024-11-03 19:02 ` Arinzon, David
  2024-11-03 19:43   ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Arinzon, David @ 2024-11-03 19:02 UTC (permalink / raw)
  To: Dr. David Alan Gilbert, Agroskin, Shay, Kiyanovski, Arthur
  Cc: Dagan, Noam, Bshara, Saeed, netdev@vger.kernel.org

> Hi,
>   I noticed that commit:
> commit a4e262cde3cda4491ce666e7c5270954c4d926b9
> Author: Sameeh Jubran <sameehj@amazon.com>
> Date:   Mon Jun 3 17:43:25 2019 +0300
> 
>     net: ena: allow automatic fallback to polling mode
> 
> added a 'ena_com_set_admin_auto_polling_mode()' that's unused.
> Is that the intention?
> Because that then makes me wonder how
> admin_queue->auto_polling
> gets set, and then if the whole chunk is unused?
> 
> Thanks,
> 
> Dave
> --
>  -----Open up your eyes, open up your mind, open up your code -------
> / Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \
> \        dave @ treblig.org |                               | In Hex /
>  \ _________________________|_____ http://www.treblig.org
> |_______/

Hi Dave,
The auto polling mode was written as a fallback in case there are issues with interrupts,
it is currently not used by the ENA Linux driver, from Linux's perspective, it can be removed.


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

* Re: Of ena auto_polling
  2024-11-03 19:02 ` Arinzon, David
@ 2024-11-03 19:43   ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2024-11-03 19:43 UTC (permalink / raw)
  To: Arinzon, David
  Cc: Agroskin, Shay, Kiyanovski, Arthur, Dagan, Noam, Bshara, Saeed,
	netdev@vger.kernel.org

* Arinzon, David (darinzon@amazon.com) wrote:
> > Hi,
> >   I noticed that commit:
> > commit a4e262cde3cda4491ce666e7c5270954c4d926b9
> > Author: Sameeh Jubran <sameehj@amazon.com>
> > Date:   Mon Jun 3 17:43:25 2019 +0300
> > 
> >     net: ena: allow automatic fallback to polling mode
> > 
> > added a 'ena_com_set_admin_auto_polling_mode()' that's unused.
> > Is that the intention?
> > Because that then makes me wonder how
> > admin_queue->auto_polling
> > gets set, and then if the whole chunk is unused?
> > 
> > Thanks,
> > 
> > Dave
> > --
> >  -----Open up your eyes, open up your mind, open up your code -------
> > / Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \
> > \        dave @ treblig.org |                               | In Hex /
> >  \ _________________________|_____ http://www.treblig.org
> > |_______/
> 
> Hi Dave,
> The auto polling mode was written as a fallback in case there are issues with interrupts,
> it is currently not used by the ENA Linux driver, from Linux's perspective, it can be removed.

Thanks for the reply,
I've just posted what I think is a suitable revert of it then,
see message 20241103194149.293456-1-linux@treblig.org.
I've build tested it only, so please give it a good check and shake out!

Thanks again for the reply, and the ack on the other patch.

Dave
> 
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

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

end of thread, other threads:[~2024-11-03 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-02 19:01 Of ena auto_polling Dr. David Alan Gilbert
2024-11-03 19:02 ` Arinzon, David
2024-11-03 19:43   ` Dr. David Alan Gilbert

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).