[ovs-dev,V2,09/16] acinclude: Check for extended netlink ack presence

Message ID 1505164269-9455-9-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.
RTNL ops validate and newlink now include the extended netlink
ack feature.  Check for it and set HAVE_EXT_ACK_IN_RTNL_LINKOPS
if found.

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 772ff03..577437f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -771,6 +771,9 @@  AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
                   [OVS_DEFINE([HAVE_SKB_GSO_UDP])])
   OVS_GREP_IFELSE([$KSRC/include/net/dst.h],[DST_NOCACHE],
                   [OVS_DEFINE([HAVE_DST_NOCACHE])])
+  OVS_FIND_FIELD_IFELSE([$KSRC/include/net/rtnetlink.h], [rtnl_link_ops],
+                        [extack],
+                  [OVS_DEFINE([HAVE_EXT_ACK_IN_RTNL_LINKOPS])])
 
 
   if cmp -s datapath/linux/kcompat.h.new \