]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Init shaper for TCs 8..15
authorPetr Machata <petrm@mellanox.com>
Thu, 20 Sep 2018 06:21:24 +0000 (09:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 14:46:01 +0000 (07:46 -0700)
commit57c63e06eea260d0a0b92ac78579d1f350f1fe78
treea604727759e1edac72f649ade058dd10e958cb52
parent31e6f703805da6a756ab12ce4bc0128c1a3bba46
mlxsw: spectrum: Init shaper for TCs 8..15

With introduction of MC-aware mode to mlxsw, it became necessary to
configure TCs above 7 as well. There is now code in mlxsw to disable ETS
for these higher classes, but disablement of max shaper was neglected.

By default, max shaper is currently disabled to begin with, so the
problem is just cosmetic. However, for symmetry, do like we do for ETS
configuration, and call mlxsw_sp_port_ets_maxrate_set() for both TC i
and i + 8.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c