diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-01-15 03:11:16 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-16 05:02:34 +0100 |
commit | 70d39a6e62d31a4a7372a712ccc6f8063bbb1550 (patch) | |
tree | d944d72ae2f4f3a065a661557c3871b5316f646d /drivers/net/dsa/ocelot/seville_vsc9953.c | |
parent | net: dsa: felix: perform teardown in reverse order of setup (diff) | |
download | linux-70d39a6e62d31a4a7372a712ccc6f8063bbb1550.tar.xz linux-70d39a6e62d31a4a7372a712ccc6f8063bbb1550.zip |
net: mscc: ocelot: export NUM_TC constant from felix to common switch lib
We should be moving anything that isn't DSA-specific or SoC-specific out
of the felix DSA driver, and into the common mscc_ocelot switch library.
The number of traffic classes is one of the aspects that is common
between all ocelot switches, so it belongs in the library.
This patch also makes seville use 8 TX queues, and therefore enables
prioritization via the QOS_CLASS field in the NPI injection header.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/ocelot/seville_vsc9953.c')
-rw-r--r-- | drivers/net/dsa/ocelot/seville_vsc9953.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index 8dad0c894eca..5e9bfdea50be 100644 --- a/drivers/net/dsa/ocelot/seville_vsc9953.c +++ b/drivers/net/dsa/ocelot/seville_vsc9953.c @@ -1201,6 +1201,7 @@ static const struct felix_info seville_info_vsc9953 = { .vcap = vsc9953_vcap_props, .num_mact_rows = 2048, .num_ports = 10, + .num_tx_queues = OCELOT_NUM_TC, .mdio_bus_alloc = vsc9953_mdio_bus_alloc, .mdio_bus_free = vsc9953_mdio_bus_free, .phylink_validate = vsc9953_phylink_validate, |