]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: dsa: microchip: add ETS Qdisc support for KSZ9477 series
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 10 Mar 2023 09:08:09 +0000 (10:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2023 08:00:35 +0000 (08:00 +0000)
commitc570f861fa059ea653599415a7c8cc1dfaf16763
tree0ac4d15039a34b7d3d40a0cb6aa4a816c323150e
parent69444581d0022b8afced2c90c441b7b4d9b8eba9
net: dsa: microchip: add ETS Qdisc support for KSZ9477 series

Add ETS Qdisc support for KSZ9477 of switches. Current implementation is
limited to strict priority mode.

Tested on KSZ8563R with following configuration:
tc qdisc replace dev lan2 root handle 1: ets strict 4 \
  priomap 3 3 2 2 1 1 0 0
ip link add link lan2 name v1 type vlan id 1 \
  egress-qos-map 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7

and patched iperf3 version:
https://github.com/esnet/iperf/pull/1476
iperf3 -c 172.17.0.1 -b100M  -l1472 -t100 -u -R --sock-prio 2

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h