OSDN Git Service

net: extract nf_ct_handle_fragments to nf_conntrack_ovs
authorXin Long <lucien.xin@gmail.com>
Tue, 7 Feb 2023 22:52:10 +0000 (17:52 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Feb 2023 00:23:03 +0000 (16:23 -0800)
commit0785407e78d4bce56e04d92a6c961900b3d513dd
tree9efb911dc87a0d6db5c1634a3f57d3c4d9e0b895
parent558d95e7e11cd9844806e804f4c1243f2c744b00
net: extract nf_ct_handle_fragments to nf_conntrack_ovs

Now handle_fragments() in OVS and TC have the similar code, and
this patch removes the duplicate code by moving the function
to nf_conntrack_ovs.

Note that skb_clear_hash(skb) or skb->ignore_df = 1 should be
done only when defrag returns 0, as it does in other places
in kernel.

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