diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-06-02 23:38:46 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-06-03 00:02:06 +0200 |
commit | 00bfb3205e62970ff14ac8756e1a72b753a990ab (patch) | |
tree | 6e87fffa2b3466b76cd6e95d76631ed89b14aa6e /net/netfilter/nft_counter.c | |
parent | 45ca4e0cf2734f8cc14b43e47c23618215abf1b8 (diff) | |
download | linux-00bfb3205e62970ff14ac8756e1a72b753a990ab.tar.gz linux-00bfb3205e62970ff14ac8756e1a72b753a990ab.tar.bz2 linux-00bfb3205e62970ff14ac8756e1a72b753a990ab.zip |
netfilter: nf_tables: pass context to object destroy indirection
The new connlimit object needs this to properly deal with conntrack
dependencies.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_counter.c')
-rw-r--r-- | net/netfilter/nft_counter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nft_counter.c b/net/netfilter/nft_counter.c index eefe3b409925..e59a74d6b7d6 100644 --- a/net/netfilter/nft_counter.c +++ b/net/netfilter/nft_counter.c @@ -96,7 +96,8 @@ static void nft_counter_do_destroy(struct nft_counter_percpu_priv *priv) free_percpu(priv->counter); } -static void nft_counter_obj_destroy(struct nft_object *obj) +static void nft_counter_obj_destroy(const struct nft_ctx *ctx, + struct nft_object *obj) { struct nft_counter_percpu_priv *priv = nft_obj_data(obj); |