net: move the ct helper function to nf_conntrack_helper for ovs and tc
authorXin Long <lucien.xin@gmail.com>
Sun, 6 Nov 2022 20:34:14 +0000 (15:34 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Nov 2022 11:15:19 +0000 (12:15 +0100)
commitca71277f36e0781db663aedeb5fc1e26e7c144c4
tree8f827a5c35f2703c85b7d0d9c16eff7b7571cb44
parent47f3ecf4763d3fea37d3453c9ee1f9f2169d71b3
net: move the ct helper function to nf_conntrack_helper for ovs and tc

Move ovs_ct_helper from openvswitch to nf_conntrack_helper and rename
as nf_ct_helper so that it can be used in TC act_ct in the next patch.
Note that it also adds the checks for the family and proto, as in TC
act_ct, the packets with correct family and proto are not guaranteed.

Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/netfilter/nf_conntrack_helper.h
net/netfilter/nf_conntrack_helper.c
net/openvswitch/conntrack.c