Add check for __vlan_find_dev_deep_rcu
authorSteve Wise <swise@opengridcomputing.com>
Mon, 17 Nov 2014 16:39:23 +0000 (10:39 -0600)
committerroot <root@rac3.ogc.int>
Mon, 17 Nov 2014 16:39:23 +0000 (10:39 -0600)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
config/rdma.m4

index 2b4fdd7..bc807c8 100644 (file)
@@ -671,6 +671,22 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
        ],[
                AC_MSG_RESULT(no)
        ])
+
+       AC_MSG_CHECKING([if if_vlan.h has __vlan_find_dev_deep_rcu])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/if_vlan.h>
+       ],[
+               __vlan_find_dev_deep_rcu(NULL, 0, 0);
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE___VLAN_FIND_DEV_DEEP_RCU, 1,
+                         [__vlan_find_dev_deep_rcu is defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
 ])
 #
 # COMPAT_CONFIG_HEADERS