netfilter: nf_tables: destroy basechain and rules on netdevice removal
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Dec 2015 18:40:49 +0000 (19:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Dec 2015 17:34:35 +0000 (18:34 +0100)
commit5ebe0b0eec9d6f703b137f9b938c52f7b91dd9d6
tree3bce71064195708c73697ffba15606f43256561e
parentdf05ef874b284d833c2d9795a6350c6a373ab6c9
netfilter: nf_tables: destroy basechain and rules on netdevice removal

If the netdevice is destroyed, the resources that are attached should
be released too as they belong to the device that is now gone.

Suggested-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_netdev.c