Added HAVE_NETDEV_XMIT_MORE macro
authorVladimir Sokolovsky <vlad@mellanox.com>
Thu, 29 Aug 2019 15:56:08 +0000 (10:56 -0500)
committerVladimir Sokolovsky <vlad@mellanox.com>
Thu, 29 Aug 2019 15:56:08 +0000 (10:56 -0500)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
config/rdma.m4

index ff5148d..eeef8ef 100644 (file)
@@ -9908,6 +9908,21 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if netdevice.h has netdev_xmit_more])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/netdevice.h>
+       ],[
+               netdev_xmit_more();
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_NETDEV_XMIT_MORE, 1,
+                         [netdev_xmit_more is defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
 ])
 #
 # COMPAT_CONFIG_HEADERS