]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Support general qdisc stats
authorNogah Frankel <nogahf@mellanox.com>
Mon, 6 Nov 2017 06:23:49 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 03:23:38 +0000 (12:23 +0900)
commit7ec5200ff8ab3117b705d1044189373bcef67f47
tree704f24584da538712a13b001add39514a5749f1c
parent14f5185ee2c9c94cdf7663a47d1d6ec0abfa6353
mlxsw: spectrum: Support general qdisc stats

Add support for ndo_setup_tc with enum tc_setup_type value of
TC_SETUP_QDISC_STATS. This call updates the generic qdisc stats from the
cache if the handle ID that is asked for matching the root qdisc ID and
fails otherwise.
Currently doesn't support qlen and rqueues.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c