OSDN Git Service

net: extract nf_ct_skb_network_trim function to nf_conntrack_ovs
authorXin Long <lucien.xin@gmail.com>
Tue, 7 Feb 2023 22:52:07 +0000 (17:52 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Feb 2023 00:23:03 +0000 (16:23 -0800)
commit67fc5d7ffbd4f9cf52adf166f5bc9a35fef37f24
tree9e881e3ed7c81476940bb886408b157809964cf2
parentc0c3ab63de603b40f89a9c0d7217209a8840d053
net: extract nf_ct_skb_network_trim function to nf_conntrack_ovs

There are almost the same code in ovs_skb_network_trim() and
tcf_ct_skb_network_trim(), this patch extracts them into a function
nf_ct_skb_network_trim() and moves the function to nf_conntrack_ovs.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netfilter/nf_conntrack.h
net/netfilter/nf_conntrack_ovs.c
net/openvswitch/conntrack.c
net/sched/act_ct.c