]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c06ff5ff14ec6f3b9e5c57c191ed509aa5aad92
tree6ebff97c2eea83aecd1273a49cacfa538fadc6b0
parent1bf6b857e1ce2d266949d67c2d84cfb7a47f4f16
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