From: Arjun Vynipadath Date: Mon, 13 Aug 2018 06:24:02 +0000 (+0530) Subject: rdma.m4: Compat headers for RHEL7.4 support in iw_cxgb3/cxgb3/cxgb4/iw_cxgb4 X-Git-Tag: vofed-4.17-rc1~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=94050cafecf9194ff7e0bb64c38a28323df8f845;p=compat-rdma%2Fcompat.git rdma.m4: Compat headers for RHEL7.4 support in iw_cxgb3/cxgb3/cxgb4/iw_cxgb4 --- diff --git a/config/rdma.m4 b/config/rdma.m4 index 62a5910..8c20890 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -276,6 +276,24 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if struct ethtool_ops has get/set_fec_param]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + const struct ethtool_ops en_ethtool_ops = { + .get_fec_param = NULL, + .set_fec_param = NULL, + }; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_GET_SET_FEC, 1, + [get/set_fec_param is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + AC_MSG_CHECKING([if struct net_device has dev_port]) LB_LINUX_TRY_COMPILE([ #include @@ -6581,6 +6599,21 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if skbuff.h has skb_put_data]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + skb_put_data(NULL, NULL, 0); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SKB_PUT_DATA, 1, + [skb_put_data is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + AC_MSG_CHECKING([if flow_dissector.h enum flow_dissector_key_keyid has FLOW_DISSECTOR_KEY_TCP]) LB_LINUX_TRY_COMPILE([ #include @@ -8319,6 +8352,36 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if linux/kref.h has kref_read]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + kref_read(NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_KREF_READ, 1, + [kref_read is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if linux/pci.h has pcie_relaxed_ordering_enabled]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + pcie_relaxed_ordering_enabled(NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_PCIE_RELAXED_ORDERING_ENABLED, 1, + [pcie_relaxed_ordering_enabled is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + LB_CHECK_SYMBOL_EXPORT([irq_to_desc], [kernel/irq/irqdesc.c], [AC_DEFINE(HAVE_IRQ_TO_DESC_EXPORTED, 1,