]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4e7fab4951dd462c272b528e5a4b3445ba79d39
tree62445e245b6944cf4b8b0559a3e4a35050589eee
parentad79be064c5e5b212fc7bcb82175bf87a75b973f
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: dde145a54966 ("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