]> git.openfabrics.org - ~aditr/compat.git/commitdiff
OFED-4.17: Add config defines for bnxt_en compilation
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 6 Jul 2018 06:17:55 +0000 (23:17 -0700)
committerSelvin Xavier <selvin.xavier@broadcom.com>
Fri, 6 Jul 2018 07:28:36 +0000 (00:28 -0700)
Adds config defines HAVE_XDP_RXQ_INFO, HAVE_TC_SETUP_BLOCK,
HAVE_NET_DIM_H, HAVE_TIME64_TO_TM

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
config/rdma.m4

index f265652abaa92c9c239209554577b1f01cc2f87c..8bb185c3da2a352d1d278f883eeae160dbd11296 100644 (file)
@@ -219,6 +219,24 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if time.h has time64_to_tm])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/time.h>
+       ],[
+               struct tm tm;
+               time64_t now = 0;
+
+               time64_to_tm(now, 0, &tm);
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_TIME64_TO_TM, 1,
+                         [time64_to_tm is defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
        AC_MSG_CHECKING([if svc_xprt_class has xcl_ident])
        LB_LINUX_TRY_COMPILE([
                #include <linux/sunrpc/xprt.h>
@@ -5149,6 +5167,19 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if net_dim.h exist])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/net_dim.h>
+       ],[
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_NET_DIM_H, 1,
+                         [linux/net_dim.h exist])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
        AC_MSG_CHECKING([if netdevice.h has TC_SETUP_QDISC_MQPRIO])
        LB_LINUX_TRY_COMPILE([
                #include <linux/netdevice.h>
@@ -5164,6 +5195,21 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if netdevice.h has TC_SETUP_BLOCK])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/netdevice.h>
+       ],[
+               enum tc_setup_type x = TC_SETUP_BLOCK;
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_TC_SETUP_BLOCK, 1,
+                         [TC_SETUP_BLOCK is defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
        AC_MSG_CHECKING([if struct netdev_xdp exists])
        LB_LINUX_TRY_COMPILE([
                #include <linux/netdevice.h>
@@ -5180,6 +5226,20 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if struct xdp_rxq_info exists])
+       LB_LINUX_TRY_COMPILE([
+               #include <net/xdp.h>
+       ],[
+               struct xdp_rxq_info xdp_rxq_inf;
+               xdp_rxq_inf = xdp_rxq_inf;
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_XDP_RXQ_INFO, 1,
+                         [struct xdp_rxq_info is defined])
+       ],[
+
        AC_MSG_CHECKING([if struct net_device has min/max])
        LB_LINUX_TRY_COMPILE([
                #include <linux/netdevice.h>