]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: sched: move block offload unbind after all chains are flushed
authorJiri Pirko <jiri@mellanox.com>
Thu, 2 Nov 2017 14:07:01 +0000 (15:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2017 06:46:15 +0000 (15:46 +0900)
commit4bb1b116b7f37a64c08d28213a2e6f87fcef2d8b
treeb3587014a0c5771d5d6874030cca3ecc50b6afb6
parent9a7b96b3462679a2fcf7205d396dbf1f8f28454c
net: sched: move block offload unbind after all chains are flushed

Currently, the offload unbind is done before the chains are flushed.
That causes driver to unregister block callback before it can get all
the callback calls done during flush, leaving the offloaded tps inside
the HW. So fix the order to prevent this situation and restore the
original behaviour.

Reported-by: Alexander Duyck <alexander.duyck@gmail.com>
Reported-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c