net: sch: Don't warn on missmatching qlen and backlog for offloaded qdiscs
authorNogah Frankel <nogahf@mellanox.com>
Wed, 28 Feb 2018 09:45:03 +0000 (10:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:06:00 +0000 (12:06 -0500)
commitfd5ac14a1aae63ef95b22cc2eb23e3a25b3436be
tree4b5bd628e080c67d4e945e412a627d45c03b721f
parentcc6e5c13af8b592cfed49f4854eddddbb58c6949
net: sch: Don't warn on missmatching qlen and backlog for offloaded qdiscs

Offloaded qdiscs are allowed to expose only parts of their statistics.
It means that if backlog is being exposed and qlen is not, it might trigger
a warning in qdisc_tree_reduce_backlog.
Do not warn in case the qdisc that was removed was an offloaded one.

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