projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netfilter: nftables: add catch-all set element support
[linux-2.6-microblaze.git]
/
net
/
netfilter
/
nft_set_hash.c
diff --git
a/net/netfilter/nft_set_hash.c
b/net/netfilter/nft_set_hash.c
index
bf618b7
..
58f576a
100644
(file)
--- a/
net/netfilter/nft_set_hash.c
+++ b/
net/netfilter/nft_set_hash.c
@@
-350,6
+350,12
@@
needs_gc_run:
rhashtable_walk_stop(&hti);
rhashtable_walk_exit(&hti);
rhashtable_walk_stop(&hti);
rhashtable_walk_exit(&hti);
+ he = nft_set_catchall_gc(set);
+ if (he) {
+ gcb = nft_set_gc_batch_check(set, gcb, GFP_ATOMIC);
+ if (gcb)
+ nft_set_gc_batch_add(gcb, he);
+ }
nft_set_gc_batch_complete(gcb);
queue_delayed_work(system_power_efficient_wq, &priv->gc_work,
nft_set_gc_interval(set));
nft_set_gc_batch_complete(gcb);
queue_delayed_work(system_power_efficient_wq, &priv->gc_work,
nft_set_gc_interval(set));