[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230609141812.297521-1-alexis.lothore@bootlin.com>
Date: Fri, 9 Jun 2023 16:18:10 +0200
From: alexis.lothore@...tlin.com
To: Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: linux-kernel@...r.kernel.org ,
netdev@...r.kernel.org ,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
paul.arola@...us.com ,
scott.roberts@...us.com
Subject: [PATCH net-next 0/2] add egress rate limit offload for Marvell 6393X family
From: Alexis Lothoré <alexis.lothore@...tlin.com>
This series aims to give access to egress rate shaping offloading available
on Marvell 88E6393X family (88E6393X/88E6193X/88E6191X/88E6361)
The switch offers a very basic egress rate limiter: rate can be configured
from 64kbps up to 10gbps depending on the model, with some specific
increments depending on the targeted rate, and is "burstless".
Since available controls are quite limited, this series proposes to provide
controls to userspace through a TBF qdisc. Since hardware features do no
completely matches what TBF qidsc expects, some passed parameters (burst,
latency) are simply ignored
- 1st commit allows mv88e6xxx driver to attach the port_setup_tc callback
in dsa_switch_opts and to dispatch it to any switch implementing it
- 2nd commit add tbf configuration for 88E6393X family
Alexis Lothoré (2):
net: dsa: mv88e6xxx: allow driver to hook TC callback
net: dsa: mv88e6xxx: implement egress tbf qdisc for 6393x family
drivers/net/dsa/mv88e6xxx/chip.c | 18 ++++++
drivers/net/dsa/mv88e6xxx/chip.h | 3 +-
drivers/net/dsa/mv88e6xxx/port.c | 104 +++++++++++++++++++++++++++++++
drivers/net/dsa/mv88e6xxx/port.h | 17 ++++-
4 files changed, 139 insertions(+), 3 deletions(-)
--
2.41.0
Powered by blists - more mailing lists