diff options
author | Simon Horman <simon.horman@netronome.com> | 2015-11-26 22:07:23 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-01-28 19:02:54 -0800 |
commit | 6dbd98e6cad2cc6aced7f8be2cd15b5a5cc3ed47 (patch) | |
tree | b6809598d828afeaa3ecd6e5407a8d04b25a136b /acinclude.m4 | |
parent | 025f69aa62650a911861c48281490e52ae658b94 (diff) | |
download | openvswitch-6dbd98e6cad2cc6aced7f8be2cd15b5a5cc3ed47.tar.gz |
datapath: test for netlink_set_err returning void
In v2.6.33 netlink_set_err returns void. However, 1a50307ba182 ("netlink:
fix NETLINK_RECV_NO_ENOBUFS in netlink_set_err()") was backported and
included in v2.6.33.2 and in that and subsequent v2.6.33 stable releases
netlink_set_err returns an int.
It seems plausible that there are other backports floating around. So check
for netlink_set_err returning void rather than including compatibility code
based on the version of the kernel.
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 6771f485c..c5a1c44b4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -490,6 +490,8 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_put_in_addr]) OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_find_nested]) OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_is_last]) + OVS_GREP_IFELSE([$KSRC/include/linux/netlink.h], [void.*netlink_set_err], + [OVS_DEFINE([HAVE_VOID_NETLINK_SET_ERR])]) OVS_GREP_IFELSE([$KSRC/include/net/sctp/checksum.h], [sctp_compute_cksum]) |