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)
commit861fb8294d83ad950dfaa62b0bf8384c66e2cd5e
tree62572e3cf06d808c7ede86d7ff9b05a137ceec0d
parent075ab8adaf4e7443159bee6412cb85434c63ed15
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