]> git.openfabrics.org - ~aditr/compat.git/commitdiff
rdma.m4: Added check for get/set_rxfh_indir in ethtool_ops_ext
authorVladimir Sokolovsky <vlad@mellanox.com>
Tue, 1 Mar 2016 07:56:25 +0000 (09:56 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Tue, 1 Mar 2016 07:56:25 +0000 (09:56 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
config/rdma.m4

index f00c8e6bf537c560f0018d90647ef53f2650d535..a59bdabe03f4b43c25d3f545ce46e54a4332ee7f 100644 (file)
@@ -314,6 +314,24 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if struct ethtool_ops_ext has get/set_rxfh_indir])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/ethtool.h>
+       ],[
+               const struct ethtool_ops_ext en_ethtool_ops_ext = {
+                       .get_rxfh_indir = NULL,
+                       .set_rxfh_indir = NULL,
+               };
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_GET_SET_RXFH_INDIR_EXT, 1,
+                         [get/set_rxfh_indir is defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
        AC_MSG_CHECKING([if struct net_device has dev_port])
        LB_LINUX_TRY_COMPILE([
                #include <linux/netdevice.h>