mlxsw: spectrum: Update sch_prio stats to include sch_red related drops
authorNogah Frankel <nogahf@mellanox.com>
Wed, 28 Feb 2018 09:45:04 +0000 (10:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:06:01 +0000 (12:06 -0500)
commit23f2b4048cc49d786c452f681dd5d8920ca095a7
tree6ebff97c2eea83aecd1273a49cacfa538fadc6b0
parentfd5ac14a1aae63ef95b22cc2eb23e3a25b3436be
mlxsw: spectrum: Update sch_prio stats to include sch_red related drops

sch_prio as root qdisc should count all the drops its children have. Since
it is possible for it to have sch_red children, it needs to count RED early
drops.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@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_qdisc.c