netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net: mvneta: mqprio cleanups and shaping support
@ 2021-11-25 15:48 Maxime Chevallier
  2021-11-25 15:48 ` [PATCH net-next 1/4] net: mvneta: Use struct tc_mqprio_qopt_offload for MQPrio configuration Maxime Chevallier
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Maxime Chevallier @ 2021-11-25 15:48 UTC (permalink / raw)
  To: davem
  Cc: Maxime Chevallier, netdev, linux-kernel, thomas.petazzoni,
	gregory.clement, Andrew Lunn, Pali Rohár

Hello everyone,

This series adds some improvements to the existing mqprio implementation
in mvneta, and adds support for egress shaping offload.

The first 3 patches are some minor cleanups, such as using the
tc_mqprio_qopt_offload structure to get access to more offloading
options, cleaning the logic to detect wether or not we should offload
mqprio setting, and allowing to have a 1 to N mapping between TCs and
queues.

The last patch adds traffic shaping offload, using mvneta's per-queue
token buckets, allowing to limit rates from 10Kbps up to 5Gbps with
10Kbps increments.

This was tested only on an Armada 3720, with traffic up to 2.5Gbps.

Maxime Chevallier (4):
  net: mvneta: Use struct tc_mqprio_qopt_offload for MQPrio configuration
  net: mvneta: Don't force-set the offloading flag
  net: mvneta: Allow having more than one queue per TC
  net: mvneta: Add TC traffic shaping offload

 drivers/net/ethernet/marvell/mvneta.c | 161 +++++++++++++++++++++++---
 1 file changed, 145 insertions(+), 16 deletions(-)

-- 
2.25.4


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

end of thread, other threads:[~2021-11-26 10:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-25 15:48 [PATCH net-next 0/4] net: mvneta: mqprio cleanups and shaping support Maxime Chevallier
2021-11-25 15:48 ` [PATCH net-next 1/4] net: mvneta: Use struct tc_mqprio_qopt_offload for MQPrio configuration Maxime Chevallier
2021-11-25 15:48 ` [PATCH net-next 2/4] net: mvneta: Don't force-set the offloading flag Maxime Chevallier
2021-11-25 15:48 ` [PATCH net-next 3/4] net: mvneta: Allow having more than one queue per TC Maxime Chevallier
2021-11-25 15:48 ` [PATCH net-next 4/4] net: mvneta: Add TC traffic shaping offload Maxime Chevallier
2021-11-25 17:50   ` Jakub Kicinski
2021-11-26 10:24     ` Maxime Chevallier
2021-11-26  9:14   ` kernel test robot

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