From: Steve Wise Date: Tue, 18 Nov 2014 13:26:39 +0000 (-0600) Subject: Added NDO_SELECT_QUEUE_HAS_ACCEL_PRIV and HAVE_BONDING_H X-Git-Tag: vofed-3.18~49 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=49179d52735f863491929e4528cfd29b96d297b0;p=compat-rdma%2Fcompat.git Added NDO_SELECT_QUEUE_HAS_ACCEL_PRIV and HAVE_BONDING_H Signed-off-by: Steve Wise --- diff --git a/config/rdma.m4 b/config/rdma.m4 index bc807c8..c66bc7c 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -687,6 +687,42 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if ndo_select_queue has accel_priv]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + struct net_device_opts ndops; + + static u16 select_queue(struct net_device *dev, struct sk_buff *skb, + void *accel_priv) + { + return 0; + } + + ndoops.ndo_select_queue = select_queue; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(NDO_SELECT_QUEUE_HAS_ACCEL_PRIV, 1, + [ndo_select_queue has accel_priv]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if drivers/net/bonding/bonding.h exists]) + LB_LINUX_TRY_COMPILE([ + #include "../drivers/net/bonding/bonding.h" + ],[ + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_BONDING_H, 1, + [drivers/net/bonding/bonding.h exists]) + ],[ + AC_MSG_RESULT(no) + ]) + ]) # # COMPAT_CONFIG_HEADERS