]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: un-inline nf_ct_ecache_ext_add
authorFlorian Westphal <fw@strlen.de>
Mon, 25 Apr 2022 13:15:42 +0000 (15:15 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 May 2022 16:56:28 +0000 (18:56 +0200)
commit14cf5b8163ff98863370e1f336120c38c9f687e4
treeaf1f0e21aa7b6dd6e6b1e0ae0c91790d24948acd
parent20108ee1659b8d7b6df979df51be00574e7eec99
netfilter: conntrack: un-inline nf_ct_ecache_ext_add

Only called when new ct is allocated or the extension isn't present.
This function will be extended, place this in the conntrack module
instead of inlining.

The callers already depend on nf_conntrack module.
Return value is changed to bool, noone used the returned pointer.

Make sure that the core drops the newly allocated conntrack
if the extension is requested but can't be added.
This makes it necessary to ifdef the section, as the stub
always returns false we'd drop every new conntrack if the
the ecache extension is disabled in kconfig.

Add from data path (xt_CT, nft_ct) is unchanged.

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