]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
Add HAVE_BOND_FOR_EACH_SLAVE_3_PARAMS check
authorSteve Wise <swise@opengridcomputing.com>
Thu, 20 Nov 2014 22:27:47 +0000 (16:27 -0600)
committerroot <root@rac1.ogc.int>
Thu, 20 Nov 2014 22:27:47 +0000 (16:27 -0600)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
config/rdma.m4

index c66bc7c7fc5ccd34f3729e86467575557b2dd8c1..979f977c27c6410bc0e3291cd1e1554228817475 100644 (file)
@@ -723,6 +723,25 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if bonding.h bond_for_each_slave has 3 parameters])
+       LB_LINUX_TRY_COMPILE([
+               #include "../drivers/net/bonding/bonding.h"
+       ],[
+               struct bonding *bond = NULL;
+               struct list_head *iter = NULL;
+               struct slave *slave = NULL;
+
+               bond_for_each_slave(bond, slave, iter) ;
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_BOND_FOR_EACH_SLAVE_3_PARAMS, 1,
+                         [bond_for_each_slave has 3 parameters])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
 ])
 #
 # COMPAT_CONFIG_HEADERS