Skip to contentSkip to conversation

netfilter: nf_tables: get rid of NFT_BASECHAIN_DISABLED

PATCH New Pablo Neira Ayuso 1 participant 1 message Jun 23, 2016

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 netfilter: nf_tables: get rid of NFT_BASECHAIN_DISABLED

This flag was introduced to restore rulesets from the new netdev family, but since 5ebe0b0eec9d6f7 ("netfilter: nf_tables: destroy basechain and rules on netdevice removal") the ruleset is released once the netdev is gone.

This also removes nft_register_basechain() and nft_unregister_basechain() since they have no clients anymore after this rework.

---
 include/net/netfilter/nf_tables.h |  1 -
 net/netfilter/nf_tables_api.c     | 62 ++++++++++++++++-----------------------
 2 files changed, 25 insertions(+), 38 deletions(-)
include/net/netfilter/nf_tables.h +0 -1
index 507b0f9..30c1d94 100644
@@ -799,7 +799,6 @@ struct nft_stats {
 };
 
 #define NFT_HOOK_OPS_MAX		2
-#define NFT_BASECHAIN_DISABLED		(1 << 0)
 
 /**
  *	struct nft_base_chain - nf_tables base chain
net/netfilter/nf_tables_api.c +25 -37

136 lines not on this page · raw message

Signature · 1 line
2.1.4