[PATCH net-next v2 0/2] net: dsa: mv88e6xxx: add support for credit based shaper

Cedric Jehasse via B4 Relay posted 2 patches 1 week, 6 days ago
There is a newer version of this series
drivers/net/dsa/mv88e6xxx/chip.c        | 157 ++++++++++++++++++++++++++++++++
drivers/net/dsa/mv88e6xxx/chip.h        |  22 +++++
drivers/net/dsa/mv88e6xxx/global2_avb.c |  21 +++++
drivers/net/dsa/mv88e6xxx/port.c        |  38 ++++++++
drivers/net/dsa/mv88e6xxx/port.h        |  16 ++++
net/dsa/tag_dsa.c                       |   3 +-
6 files changed, 256 insertions(+), 1 deletion(-)
[PATCH net-next v2 0/2] net: dsa: mv88e6xxx: add support for credit based shaper
Posted by Cedric Jehasse via B4 Relay 1 week, 6 days ago
Several of the switch families in this driver have switches with AVB
support. The switches with AVB support have support for Credit based
shaping. This series adds support for the 6352, 6390 and 6393 families.
The difference between the families is:
- total number of queues
- which queues support credit based shaping
- shaping granularity

Eg. setting up 20mbps credit based shaper on a 1GBit link:
tc qdisc add dev p8 parent root handle 100: mqprio \
    num_tc 8 \
    map 0 0 6 7 0 5 0 0 0 0 0 0 0 0 0 0 \
    queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 \
    hw 0

tc qdisc replace dev p8 parent 100:8 cbs locredit -1470 hicredit 30 \
    sendslope -980000 idleslope 20000 offload 1

Signed-off-by: Cedric Jehasse <cedric.jehasse@luminex.be>
---
Changes in v2:
- tx_queues defined for all devices (which could be found). Thanks to Marek Behún.
- Link to v1: https://lore.kernel.org/r/20260522-net-next-mv88e6xxx-cbs-v1-0-c87a8e6bcc0c@luminex.be

---
Cedric Jehasse (2):
      net: dsa: mv88e6xxx: use the hw tx queues
      net: dsa: mv88e6xxx: add support for credit based shaper

 drivers/net/dsa/mv88e6xxx/chip.c        | 157 ++++++++++++++++++++++++++++++++
 drivers/net/dsa/mv88e6xxx/chip.h        |  22 +++++
 drivers/net/dsa/mv88e6xxx/global2_avb.c |  21 +++++
 drivers/net/dsa/mv88e6xxx/port.c        |  38 ++++++++
 drivers/net/dsa/mv88e6xxx/port.h        |  16 ++++
 net/dsa/tag_dsa.c                       |   3 +-
 6 files changed, 256 insertions(+), 1 deletion(-)
---
base-commit: 022bdd9c0d036863c4bacd1688b73c6be3001cee
change-id: 20260430-net-next-mv88e6xxx-cbs-2121169caa68

Best regards,
-- 
Cedric Jehasse <cedric.jehasse@luminex.be>


Re: [PATCH net-next v2 0/2] net: dsa: mv88e6xxx: add support for credit based shaper
Posted by Andrew Lunn 1 week, 6 days ago
On Tue, May 26, 2026 at 01:41:13PM +0200, Cedric Jehasse via B4 Relay wrote:
> Several of the switch families in this driver have switches with AVB
> support. The switches with AVB support have support for Credit based
> shaping. This series adds support for the 6352, 6390 and 6393 families.

Both Luke and Marek showed interest in your patches. So it is a good
idea to add them to the Cc: list. Comments or Reviewed-by: from them
will help get your patches merged.

     Andrew