summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_netdev.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-03-20 18:10:29 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-06 18:32:04 +0200
commitf323d9546927a012cafbb7e503e6aa0e9fbff94b (patch)
tree1cb2b3b4467a79db9f3ba9d330d48b0afce6705d /net/netfilter/nf_tables_netdev.c
parent6f14f443d3e773439fb9cc6f2685ba90d5d026c5 (diff)
downloadlinux-f323d9546927a012cafbb7e503e6aa0e9fbff94b.tar.bz2
netfilter: nf_tables: add nft_is_base_chain() helper
This new helper function allows us to check if this is a basechain. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_netdev.c')
-rw-r--r--net/netfilter/nf_tables_netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_netdev.c b/net/netfilter/nf_tables_netdev.c
index 9e2ae424b640..403432988313 100644
--- a/net/netfilter/nf_tables_netdev.c
+++ b/net/netfilter/nf_tables_netdev.c
@@ -128,7 +128,7 @@ static int nf_tables_netdev_event(struct notifier_block *this,
list_for_each_entry(table, &afi->tables, list) {
ctx.table = table;
list_for_each_entry_safe(chain, nr, &table->chains, list) {
- if (!(chain->flags & NFT_BASE_CHAIN))
+ if (!nft_is_base_chain(chain))
continue;
ctx.chain = chain;