]> git.baikalelectronics.ru Git - kernel.git/commit
net_sch: red: Fix the new offload indication
authorNogah Frankel <nogahf@mellanox.com>
Mon, 25 Dec 2017 08:51:41 +0000 (10:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 18:17:45 +0000 (13:17 -0500)
commitd3e3a411de85c72b2794d67291dae6e0f58e5c21
treec0aff4a155d19ce10b30b9afc61227fc3fb8bb9c
parent0ea8ed920447a286c2cec074fd7d05c04aba4b96
net_sch: red: Fix the new offload indication

Update the offload flag, TCQ_F_OFFLOADED, in each dump call (and ignore
the offloading function return value in relation to this flag).
This is done because a qdisc is being initialized, and therefore offloaded
before being grafted. Since the ability of the driver to offload the qdisc
depends on its location, a qdisc can be offloaded and un-offloaded by graft
calls, that doesn't effect the qdisc itself.

Fixes: 3b832866e3d5 ("net: sched: Move to new offload indication in RED"
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_red.c