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 <[email protected]>
---
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 \
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev