net: sch: red: Change offloaded xstats to be incremental
authorNogah Frankel <nogahf@mellanox.com>
Wed, 10 Jan 2018 13:59:59 +0000 (14:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 21:07:40 +0000 (16:07 -0500)
commitf8253df553537518e9f87fa2eb599d68a2df092b
treeb965dafebc45d52bd86cbd295774d8f0aaf5353e
parentf34b4aac46b2c7b76d3313c94efe02a64ac8f24a
net: sch: red: Change offloaded xstats to be incremental

Change the value of the xstats requested from the driver for offloaded RED
to be incremental, like the normal stats.
It increases consistency - if a qdisc stops being offloaded its xstats
don't change.

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
net/sched/sch_red.c