[ovs-dev,07/15] acinclude: Add compat define for DST_NOCACHE

Message ID 1505152570-6143-7-git-send-email-gvrose8192@gmail.com
State Superseded
Headers show
Series
  • [ovs-dev,01/15] acinclude: Check for SKB_GSO_UDP
Related show

Commit Message

Gregory Rose Sept. 11, 2017, 5:56 p.m.
DST_NOCACHE is removed in the 4.13 Linux kernel - add check for it
and if found set HAVE_DST_NOCACHE.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
---
 acinclude.m4 | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/acinclude.m4 b/acinclude.m4
index 0e98ade..772ff03 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -769,6 +769,8 @@  AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
                   [nf_conntrack_helper_put])
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h],[SKB_GSO_UDP],
                   [OVS_DEFINE([HAVE_SKB_GSO_UDP])])
+  OVS_GREP_IFELSE([$KSRC/include/net/dst.h],[DST_NOCACHE],
+                  [OVS_DEFINE([HAVE_DST_NOCACHE])])
 
 
   if cmp -s datapath/linux/kcompat.h.new \