netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lantiq_xrx200: Ethernet MAC with multiple TX queues
@ 2021-03-24 20:04 Martin Blumenstingl
  2021-03-24 20:13 ` Vladimir Oltean
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Blumenstingl @ 2021-03-24 20:04 UTC (permalink / raw)
  To: netdev
  Cc: Hauke Mehrtens, andrew, vivien.didelot, f.fainelli, olteanv,
	davem, kuba

Hello,

the PMAC (Ethernet MAC) IP built into the Lantiq xRX200 SoCs has
support for multiple (TX) queues.
This MAC is connected to the SoC's built-in switch IP (called GSWIP).

Right now the lantiq_xrx200 driver only uses one TX and one RX queue.
The vendor driver (which mixes DSA/switch and MAC functionality in one
driver) uses the following approach:
- eth0 ("lan") uses the first TX queue
- eth1 ("wan") uses the second TX queue

With the current (mainline) lantiq_xrx200 driver some users are able
to fill up the first (and only) queue.
This is why I am thinking about adding support for the second queue to
the lantiq_xrx200 driver.

My main question is: how do I do it properly?
Initializing the second TX queue seems simple (calling
netif_tx_napi_add for a second time).
But how do I choose the "right" TX queue in xrx200_start_xmit then?

If my description is too vague then please let me know about any
specific questions you have.
Also if there's an existing driver that "does things right" I am happy
to look at that one.


Thank you and best regards,
Martin

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

end of thread, other threads:[~2021-03-25 19:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-24 20:04 lantiq_xrx200: Ethernet MAC with multiple TX queues Martin Blumenstingl
2021-03-24 20:13 ` Vladimir Oltean
2021-03-24 21:09   ` Florian Fainelli
2021-03-24 22:21     ` Vladimir Oltean
2021-03-24 23:07       ` Florian Fainelli
2021-03-25  1:18         ` Vladimir Oltean
2021-03-25  3:08           ` Florian Fainelli
2021-03-25 19:29             ` Martin Blumenstingl
2021-03-24 22:50     ` Hauke Mehrtens
2021-03-24 22:58       ` Florian Fainelli

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