[ovs-dev,V2,11/16] acinclude: Check for existence of nf_hook_ops member "list".

Message ID 1505164269-9455-11-git-send-email-gvrose8192@gmail.com
State Accepted
Headers show
Series
  • [ovs-dev,V2,01/16] acinclude: Check for SKB_GSO_UDP
Related show

Commit Message

Gregory Rose Sept. 11, 2017, 9:11 p.m.
The "list" member of the nf_hook_ops structure is removed in Linux
kernel release 4.13.

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

Patch

diff --git a/acinclude.m4 b/acinclude.m4
index 577437f..46efa69 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -774,6 +774,9 @@  AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
   OVS_FIND_FIELD_IFELSE([$KSRC/include/net/rtnetlink.h], [rtnl_link_ops],
                         [extack],
                   [OVS_DEFINE([HAVE_EXT_ACK_IN_RTNL_LINKOPS])])
+  OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hook_ops],
+                        [list],
+                        [OVS_DEFINE([HAVE_LIST_IN_NF_HOOK_OPS])])
 
 
   if cmp -s datapath/linux/kcompat.h.new \