summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorGreg Rose <gvrose8192@gmail.com>2020-03-06 14:37:14 -0800
committerBen Pfaff <blp@ovn.org>2020-03-06 14:39:24 -0800
commitf77d85b109f049a45c73fd2bbafe4d4220ca7c78 (patch)
tree9046566275e1be73af9846e106cad12daf77094c /acinclude.m4
parentea58abe51557ea7004db4267fcf36f588e6f17c3 (diff)
downloadopenvswitch-f77d85b109f049a45c73fd2bbafe4d4220ca7c78.tar.gz
compat: Fix up changes to inet frags in 5.1+
Since Linux kernel release 5.1 the fragments field of the inet_frag_queue structure is removed and now only the rb_fragments structure with an rb_node pointer is used for both ipv4 and ipv6. In addition, the atomic_sub and atomic_add functions are replaced with their equivalent long counterparts. Acked-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Greg Rose <gvrose8192@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 03d3484c9..3a555ad93 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1048,6 +1048,8 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
[OVS_DEFINE([HAVE_RBTREE_RB_LINK_NODE_RCU])])
OVS_GREP_IFELSE([$KSRC/include/net/dst_ops.h], [bool confirm_neigh],
[OVS_DEFINE([HAVE_DST_OPS_CONFIRM_NEIGH])])
+ OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [fqdir],
+ [OVS_DEFINE([HAVE_INET_FRAG_FQDIR])])
if cmp -s datapath/linux/kcompat.h.new \
datapath/linux/kcompat.h >/dev/null 2>&1; then