Skip to content

net: mvneta: mqprio cleanups and shaping support

Maxime Chevallier lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesApplied 4/4
  2. v14 patches 2 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: mvneta: Use struct tc_mqprio_qopt_offload for MQPrio configurationdrivers/net/ethernet/marvell/mvneta.c+10 -70 repliesApplied
2/4net: mvneta: Don't force-set the offloading flagdrivers/net/ethernet/marvell/mvneta.c+3 -10 repliesApplied
3/4net: mvneta: Allow having more than one queue per TCdrivers/net/ethernet/marvell/mvneta.c+20 -150 repliesApplied
4/4net: mvneta: Add TC traffic shaping offloaddrivers/net/ethernet/marvell/mvneta.c+119 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] net: mvneta: mqprio cleanups and shaping support

Hello everyone,

This is the second version of the series that 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 whether 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.

Changes since V1 fixes the build for 32bits kernels, using the right div helpers as suggested by Jakub.

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 | 160 +++++++++++++++++++++++---
 1 file changed, 144 insertions(+), 16 deletions(-)
Signature · 1 line
2.25.4