]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Introduce RCU locking in bitmap:* types
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 13 Jun 2015 12:39:59 +0000 (14:39 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sun, 14 Jun 2015 08:40:16 +0000 (10:40 +0200)
commit8241ddbf08d621cb923a1b300f23cfe58a805377
treee091eedd03dafcb68da9fb00fc2cf4db00b50483
parentd7813c0e04797a40ee306ecbe44c17bfea1e2998
netfilter: ipset: Introduce RCU locking in bitmap:* types

There's nothing much required because the bitmap types use atomic
bit operations. However the logic of adding elements slightly changed:
first the MAC address updated (which is not atomic), then the element
activated (added). The extensions may call kfree_rcu() therefore we
call rcu_barrier() at module removal.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_bitmap_gen.h
net/netfilter/ipset/ip_set_bitmap_ip.c
net/netfilter/ipset/ip_set_bitmap_ipmac.c
net/netfilter/ipset/ip_set_bitmap_port.c