aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2010-05-17 14:13:32 -0700
committerJustin Pettit <jpettit@nicira.com>2010-05-17 15:07:10 -0700
commit488a9d1703a182529d53d80c7ab5a1b608a3600a (patch)
tree5d00b61e052292870117a6ca254d9411b6a7b4fe /acinclude.m4
parent9cbd4a4ee098426aef07fb20cc322416e293884f (diff)
datapath: Fix build with backported dev_get_stats().
An upcoming backport adds dev_get_stats() to a pre-2.6.29 Linux kernel, so we have to check for the presence of an dev_get_stats() definition instead of for the particular kernel version.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8643cf7b..6a37443a 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -150,6 +150,8 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [
OVS_GREP_IFELSE([$KSRC26/include/linux/netdevice.h], [dev_disable_lro],
[OVS_DEFINE([HAVE_DEV_DISABLE_LRO])])
+ OVS_GREP_IFELSE([$KSRC26/include/linux/netdevice.h], [dev_get_stats],
+ [OVS_DEFINE([HAVE_DEV_GET_STATS])])
# Check for the proto_data_valid member in struct sk_buff. The [^@]
# is necessary because some versions of this header remove the