Commit 94ebb264 authored by Florian Westphal's avatar Florian Westphal Committed by Lu Wei
Browse files

netfilter: conntrack: split resolve_clash function

mainline inclusion
from mainline-v5.6-rc3
commit bb89abe5
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I63OS1


CVE: NA

--------------------------------

Followup patch will need a helper function with the 'clashing entries
refer to the identical tuple in both directions' resolution logic.

This patch will add another resolve_clash helper where loser_ct must
not be added to the dying list because it will be inserted into the
table.

Therefore this also moves the stat counters and dying-list insertion
of the losing ct.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSun Shouxin <sunshouxin@chinatelecom.cn>
Signed-off-by: default avatarXibo.Wang <wangxb12@chinatelecom.cn>

conflict:
	net/netfilter/nf_conntrack_core.c

Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
parent d78110a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment