netfilter: nf_tables: add helper to unregister chain hooks
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Tue, 2 Sep 2014 14:42:23 +0000 (16:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Sep 2014 14:31:21 +0000 (16:31 +0200)
commitc559879406c10087ea2eab0e1868f79eced12bf9
tree2c9674a18ac0af54f356e0770a85910f0547cfa0
parent5e266fe7c046b107496a338839cfb6008aeddbd8
netfilter: nf_tables: add helper to unregister chain hooks

This patch adds a helper function to unregister chain hooks in the chain
deletion path. Basically, a code factorization.

The new function is useful in follow-up patches.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c