mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC net-next 0/7] net: ethernet: ti: am65-cpsw: Add multi queue RX support
@ 2024-06-06 12:09 Roger Quadros
  2024-06-06 12:09 ` [PATCH RFC net-next 1/7] net: ethernet: ti: am65-cpsw: Introduce multi queue Rx Roger Quadros
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Roger Quadros @ 2024-06-06 12:09 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Siddharth Vadapalli
  Cc: Andrew Lunn, srk, vigneshr, danishanwar, pekka Varis, netdev,
	linux-kernel, linux-omap, Roger Quadros

Hi,

am65-cpsw can support up to 8 queues at Rx. So far we have
been using only one queue (i.e. default flow) for all RX traffic.

This series adds multi-queue support. The driver starts with
1 RX queue by default. User can increase the RX queues via ethtool,
e.g. 'ethtool ethx -L rx <N>'

The series also adds regmap and regfield support to some of the
ALE registers. It adds Policer/Classifier registers and fields.

Converting the existing ALE control APIs to regfields can be a separate
exercise.

Some helper functions are added to read/write to the Policer/Classifier
registers and a default Classifier setup function is added that
routes packets based on their PCP/DSCP priority to different RX queues.

'RFC' because I had to revert the RX coalesing patch [1] to
apply this series. I still need to work out how this will work
together with RX coalescing. Series is based on v6.9

[1] e4918f9d4882 ("net: ethernet: ti: am65-cpsw: add sw tx/rx irq coalescing based on hrtimers")

Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
Roger Quadros (7):
      net: ethernet: ti: am65-cpsw: Introduce multi queue Rx
      net: ethernet: ti: cpsw_ale: use regfields for ALE registers
      net: ethernet: ti: cpsw_ale: use regfields for number of Entries and Policers
      net: ethernet: ti: cpsw_ale: add Policer and Thread control register fields
      net: ethernet: ti: cpsw_ale: add policer/classifier helpers
      net: ethernet: ti: cpsw_ale: add helper to setup classifier defaults
      net: ethernet: ti: am65-cpsw: setup priority to flow mapping

 drivers/net/ethernet/ti/am65-cpsw-ethtool.c |   5 +-
 drivers/net/ethernet/ti/am65-cpsw-nuss.c    | 197 +++++++++++---------
 drivers/net/ethernet/ti/am65-cpsw-nuss.h    |  25 ++-
 drivers/net/ethernet/ti/cpsw_ale.c          | 273 +++++++++++++++++++++++++---
 drivers/net/ethernet/ti/cpsw_ale.h          |  62 ++++++-
 5 files changed, 437 insertions(+), 125 deletions(-)
---
base-commit: bc4f675ad79dd6f081e36ca45b27eac8ee60e29f
change-id: 20240606-am65-cpsw-multi-rx-fb6cf8dea5eb

Best regards,
-- 
Roger Quadros <rogerq@kernel.org>


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

end of thread, other threads:[~2024-06-06 12:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-06 12:09 [PATCH RFC net-next 0/7] net: ethernet: ti: am65-cpsw: Add multi queue RX support Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 1/7] net: ethernet: ti: am65-cpsw: Introduce multi queue Rx Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 2/7] net: ethernet: ti: cpsw_ale: use regfields for ALE registers Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 3/7] net: ethernet: ti: cpsw_ale: use regfields for number of Entries and Policers Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 4/7] net: ethernet: ti: cpsw_ale: add Policer and Thread control register fields Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 5/7] net: ethernet: ti: cpsw_ale: add policer/classifier helpers Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 6/7] net: ethernet: ti: cpsw_ale: add helper to setup classifier defaults Roger Quadros
2024-06-06 12:09 ` [PATCH RFC net-next 7/7] net: ethernet: ti: am65-cpsw: setup priority to flow mapping Roger Quadros

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

all inboxes | Powered by JetHome®