]> git.proxmox.com Git - mirror_ovs.git/commit - acinclude.m4
datapath: Replace nf_ct_invert_tuplepr() with nf_ct_invert_tuple()
authorYi-Hung Wei <yihung.wei@gmail.com>
Tue, 15 Oct 2019 17:27:43 +0000 (10:27 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 18 Oct 2019 17:55:47 +0000 (10:55 -0700)
commitc1d728dbdea811293e6aa6c18ee9e2b323fac875
tree0468c0a74e2d5fde2ce1818423a841d1927e5cd9
parent719197e73bac15656374af48a0f86b79d9eaea34
datapath: Replace nf_ct_invert_tuplepr() with nf_ct_invert_tuple()

After upstream net-next commit 303e0c558959 ("netfilter: conntrack:
avoid unneeded nf_conntrack_l4proto lookups") nf_ct_invert_tuplepr()
is no longer available in the kernel.

Ideally, we should be in sync with upstream kernel by calling
nf_ct_invert_tuple() directly in conntrack.c.  However,
nf_ct_invert_tuple() has different function signature in older kernel,
and it would be hard to replace that in the compat layer. Thus, we
use rpl_nf_ct_invert_tuple() in conntrack.c and maintain compatibility
in the compat layer so that ovs kernel module runs smoothly in both
new and old kernel.

Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
acinclude.m4
datapath/conntrack.c
datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h