netfilter: nf_tables_offload: remove rules on unregistered device only
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 16 Oct 2019 12:30:02 +0000 (14:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 23 Oct 2019 11:01:32 +0000 (13:01 +0200)
commitbbaef955af6efa6a9090b86430e452086d8fce02
treec19845511f3d5db413d16298bc57dd45e1fb13c2
parentc5d275276ff4becb53c01a716c1f4325c2fb1197
netfilter: nf_tables_offload: remove rules on unregistered device only

After unbinding the list of flow_block callbacks, iterate over it to
remove the existing rules in the netdevice that has just been
unregistered.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_offload.c