]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Support RED xstats
authorNogah Frankel <nogahf@mellanox.com>
Mon, 6 Nov 2017 06:23:48 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 03:23:38 +0000 (12:23 +0900)
commit14f5185ee2c9c94cdf7663a47d1d6ec0abfa6353
tree62572e3cf06d808c7ede86d7ff9b05a137ceec0d
parent7dd377ef4f2558fdd30739b432ebbbd9cf3f3676
mlxsw: spectrum: Support RED xstats

Add support for ndo_setup_tc with enum tc_setup_type value of
TC_SETUP_RED_XSTATS. This call returns the RED qdisc xstats from the cache
if the handle ID that is asked for matching the root qdisc ID and fails
otherwise.

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