net: sched: Move offload check till after dump call
authorNogah Frankel <nogahf@mellanox.com>
Mon, 25 Dec 2017 08:51:42 +0000 (10:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 18:17:45 +0000 (13:17 -0500)
commit44edf2f89791d162f4dc5ec3718d21f3d6644403
tree62445e245b6944cf4b8b0559a3e4a35050589eee
parent8234af2db3614d78b49e77ef46ea8cfab6586568
net: sched: Move offload check till after dump call

Move the check of the offload state to after the qdisc dump action was
called, so the qdisc could update it if it was changed.

Fixes: 7a4fa29106d9 ("net: sched: Add TCA_HW_OFFLOAD")
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_api.c