]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_qdisc: Support offloading of ETS Qdisc
authorPetr Machata <petrm@mellanox.com>
Wed, 18 Dec 2019 14:55:19 +0000 (14:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 21:32:30 +0000 (13:32 -0800)
commit1ce3db8443ba9bccfd9ff17753cc3658bd728288
tree86bf6b1615030a062af747c6de1ea27777634ccd
parent5aec9c419526574abee4f4419e921bc01515d7d4
mlxsw: spectrum_qdisc: Support offloading of ETS Qdisc

Handle TC_SETUP_QDISC_ETS, add a new ops structure for the ETS Qdisc.
Invoke the extended prio handlers implemented in the previous patch. For
stats ops, invoke directly the prio callbacks, which are not sensitive to
differences between PRIO and ETS.

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