net: dsa: microchip: enable port queues for tc mqprio
authorArun Ramadoss <arun.ramadoss@microchip.com>
Fri, 20 Jan 2023 05:21:34 +0000 (10:51 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Jan 2023 06:12:35 +0000 (22:12 -0800)
commite30f33a5f5c74f278feaa57517d851874dfc640f
treefd3c8c5f4748494de953694840ef56a570cf1cb4
parent3176eb82681ec9c8af31c6588ddedcc6cfb9e445
net: dsa: microchip: enable port queues for tc mqprio

LAN937x family of switches has 8 queues per port where the KSZ switches
has 4 queues per port. By default, only one queue per port is enabled.
The queues are configurable in 2, 4 or 8. This patch add 8 number of
queues for LAN937x and 4 for other switches.
In the tag_ksz.c file, prioirty of the packet is queried using the skb
buffer and the corresponding value is updated in the tag.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz9477.h
drivers/net/dsa/microchip/ksz9477_reg.h
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h
drivers/net/dsa/microchip/lan937x_main.c
net/dsa/tag_ksz.c