netfilter: nf_tables: get rid of NFT_BASECHAIN_DISABLED
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 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.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- 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
@@ -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