]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: remove the percpu dying list
authorFlorian Westphal <fw@strlen.de>
Mon, 11 Apr 2022 11:01:18 +0000 (13:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 May 2022 16:52:16 +0000 (18:52 +0200)
commit4b3c112185e58e260a301f59c23cedf77c403502
tree11e63b8c7924ec751ed48e9dc73c2a7ca0b5245d
parentbae3d7370a8fd8f7d2cbe8388f13e18fcd244434
netfilter: conntrack: remove the percpu dying list

Its no longer needed. Entries that need event redelivery are placed
on the new pernet dying list.

The advantage is that there is no need to take additional spinlock on
conntrack removal unless event redelivery failed or the conntrack entry
was never added to the table in the first place (confirmed bit not set).

The IPS_CONFIRMED bit now needs to be set as soon as the entry has been
unlinked from the unconfirmed list, else the destroy function may
attempt to unlink it a second time.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netns/conntrack.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_ecache.c
net/netfilter/nf_conntrack_netlink.c