From: Somnath Kotur Date: Fri, 6 Jul 2018 06:17:55 +0000 (-0700) Subject: OFED-4.17: Add config defines for bnxt_en compilation X-Git-Tag: vofed-4.17-rc1~23 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c3741a53596d1a9029195ac541e39ce46c157c15;p=compat-rdma%2Fcompat.git OFED-4.17: Add config defines for bnxt_en compilation Adds config defines HAVE_XDP_RXQ_INFO, HAVE_TC_SETUP_BLOCK, HAVE_NET_DIM_H, HAVE_TIME64_TO_TM Signed-off-by: Somnath Kotur Signed-off-by: Selvin Xavier --- diff --git a/config/rdma.m4 b/config/rdma.m4 index f265652..8bb185c 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -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 + ],[ + 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 @@ -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 + ],[ + 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 @@ -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 + ],[ + 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 @@ -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 + ],[ + 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