diff options
| author | Arun Ramadoss <[email protected]> | 2023-01-20 05:21:34 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-01-24 06:12:35 +0000 |
| commit | e30f33a5f5c74f278feaa57517d851874dfc640f (patch) | |
| tree | fd3c8c5f4748494de953694840ef56a570cf1cb4 /drivers/net/dsa/microchip/ksz_common.h | |
| parent | net: avoid irqsave in skb_defer_free_flush (diff) | |
| download | kernel-e30f33a5f5c74f278feaa57517d851874dfc640f.tar.gz kernel-e30f33a5f5c74f278feaa57517d851874dfc640f.zip | |
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 <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index 7260528e5c57..1a00143b0345 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -49,6 +49,7 @@ struct ksz_chip_data { int cpu_ports; int port_cnt; u8 port_nirqs; + u8 num_tx_queues; const struct ksz_dev_ops *ops; bool phy_errata_9477; bool ksz87xx_eee_link_erratum; |
