diff mbox series

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

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

Commit Message

Gregory Rose Sept. 11, 2017, 5:56 p.m. UTC
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 | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Gregory Rose Sept. 11, 2017, 6:19 p.m. UTC | #1
On 09/11/2017 10:56 AM, Greg Rose wrote:
> 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 | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/acinclude.m4 b/acinclude.m4
> index 772ff03..46efa69 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -771,6 +771,12 @@ 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])])

This part below for nf_hook_ops got munged into this patch but should should have been in
its own separate patch.

I'll follow up with a V2 of the series.

- Greg

> +  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 \
>
diff mbox series

Patch

diff --git a/acinclude.m4 b/acinclude.m4
index 772ff03..46efa69 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -771,6 +771,12 @@  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])])
+  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 \