]> 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)
commit5c35fb6cde54bbc7ac1795a5c178fdd536e6db78
tree62445e245b6944cf4b8b0559a3e4a35050589eee
parentd3e3a411de85c72b2794d67291dae6e0f58e5c21
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: 8610e4e73e70 ("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