git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a552339
)
netfilter: nft_set_pipapo: no need to call pipapo_deactivate() from flush
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 18 Oct 2023 20:20:10 +0000
(22:20 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 24 Oct 2023 11:16:30 +0000
(13:16 +0200)
Use the element object that is already offered instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_pipapo.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nft_set_pipapo.c
b/net/netfilter/nft_set_pipapo.c
index 75a9dee353e242f1714a8bd831ef546d2ca116ab..bea63aa2df4b179bced9a520f29880c3df315f56 100644
(file)
--- a/
net/netfilter/nft_set_pipapo.c
+++ b/
net/netfilter/nft_set_pipapo.c
@@
-1814,8
+1814,9
@@
static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set,
{
struct nft_pipapo_elem *e = elem;
- return pipapo_deactivate(net, set, (const u8 *)nft_set_ext_key(&e->ext),
- &e->ext);
+ nft_set_elem_change_active(net, set, &e->ext);
+
+ return true;
}
/**