]> 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)
commitd63d7f88ed22065e4191c60c31fb9009c69fb108
tree11e63b8c7924ec751ed48e9dc73c2a7ca0b5245d
parent5ddd0ba89e07fba26d526ffed4c6b950b14284c4
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