public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC net-next v2 0/2] tg3: Link IRQs, NAPIs, and queues
@ 2024-10-05 14:57 Joe Damato
  2024-10-05 14:57 ` [net-next v3 1/2] tg3: Link IRQs to NAPI instances Joe Damato
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Joe Damato @ 2024-10-05 14:57 UTC (permalink / raw)
  To: netdev
  Cc: Joe Damato, David S. Miller, Eric Dumazet, Jakub Kicinski,
	open list, Michael Chan, Paolo Abeni, Pavan Chebbi

Greetings:

This RFC v3 follows from a previous RFC [1] submission which I noticed
had an issue in patch 2.

Patch 1 is changed to wrap a long line at 80 characters. No functional
changes. As such, I retained Pavan Chebbi's Reviewed-by.

Patch 2 in RFC v2 had an issue where it used the index into tp->irq_cnt
as the rxq or txq index; this is incorrect. It does not need seem that
tg3 assigns explicit queue index to struct tg3_napi, so the least
invasive change I could think of included two running counters in
tg3_napi_enable and tg3_napi_disable.

This is required because netif_queue_set_napi expected the queue index
(0 to real_num_[rt]x_queues) to be passed in to associate queues IDs
with NAPI IDs. tg2_napi_disable is modified in the reverse order;
counting down queue indices.

I am open to other suggestions on implementation from broadcom, but
thought that this was the least disruptive change.

I've tested this change on my tg3 hardware and it seems to work, see
commit message for examples of how to test.

Thanks,
Joe

[1]: https://lore.kernel.org/netdev/20240925162048.16208-1-jdamato@fastly.com/


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

 drivers/net/ethernet/broadcom/tg3.c | 45 ++++++++++++++++++++++++-----
 1 file changed, 38 insertions(+), 7 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [RFC net-next v2 0/2] tg3: Link IRQs, NAPIs, and queues
@ 2024-09-25 16:20 Joe Damato
  0 siblings, 0 replies; 9+ messages in thread
From: Joe Damato @ 2024-09-25 16:20 UTC (permalink / raw)
  To: netdev
  Cc: Joe Damato, David S. Miller, Eric Dumazet, Jakub Kicinski,
	open list, Michael Chan, Paolo Abeni, Pavan Chebbi

Greetings:

This RFC v2 follows from a PATCH submission which received some feedback
from broadcom on shortening the patch.

Patch 1 is a revised, shortened version of the original I submit a few
weeks ago [1].

Patch 2 is a new patch to link queues to NAPI instances. See the commit
message for more details and sample output.

I am sending them together as I plan to send them a series when net-next
reopens next week unless there is any feedback or changes requested.

I am hoping that broadcom would be able to take a look before then so
that these patches will be ready for official submission next week :)

Thanks,
Joe

[1]: https://lore.kernel.org/netdev/20240912155830.14688-1-jdamato@fastly.com/

rfv2:
  - Switched to RFC (net-next is closed).
  - Patch 1 incorporated the feedback from Michael Chan in the thread
    linked above to reduce the number of lines of code added.
  - Added patch 2, which implements a new feature.

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

 drivers/net/ethernet/broadcom/tg3.c | 31 ++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

-- 
2.25.1


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 14:57 [RFC net-next v2 0/2] tg3: Link IRQs, NAPIs, and queues Joe Damato
2024-10-05 14:57 ` [net-next v3 1/2] tg3: Link IRQs to NAPI instances Joe Damato
2024-10-05 14:57 ` [net-next v3 2/2] tg3: Link queues to NAPIs Joe Damato
2024-10-07  7:30   ` Michael Chan
2024-10-07 13:38     ` Joe Damato
2024-10-07 14:23     ` Joe Damato
2024-10-07 22:39       ` Michael Chan
2024-10-06 21:15 ` [RFC net-next v2 0/2] tg3: Link IRQs, NAPIs, and queues Joe Damato
  -- strict thread matches above, loose matches on Subject: below --
2024-09-25 16:20 Joe Damato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox