ib_srpt: Fix build against kernel v4.18

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7747 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-11-04 05:10:41 +00:00
parent 3e36d08f97
commit 0890a63d22
3 changed files with 9 additions and 3 deletions

View File

@@ -198,6 +198,12 @@ conftest/create_send_mad_base/result-$(KVER).txt: \
echo "$(call run_conftest,create_send_mad_base, \
-DCREATE_SEND_MAD_HAS_BASE_ARG)" >"$@"
conftest/dev_attr_max_send_sge/result-$(KVER).txt: \
conftest/dev_attr_max_send_sge/dev_attr_max_send_sge.c \
conftest/dev_attr_max_send_sge/Makefile
echo "$(call run_conftest_bool,dev_attr_max_send_sge, \
HAVE_DEV_ATTR_MAX_SEND_SGE)" >"$@"
conftest/gid_change/result-$(KVER).txt: \
conftest/gid_change/gid_change.c \
conftest/gid_change/Makefile

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2006 - 2009 Mellanox Technology Inc. All rights reserved.
* Copyright (C) 2008 - 2017 Bart Van Assche <bvanassche@acm.org>.
* Copyright (C) 2008 - 2018 Bart Van Assche <bvanassche@acm.org>.
* Copyright (C) 2008 Vladislav Bolkhovitin <vst@vlnb.net>
*
* This software is available to you under a choice of one of two
@@ -2249,7 +2249,7 @@ retry:
* max_sge values < max_sge_delta, use max_sge. For intermediate
* max_sge values, use max_sge_delta.
*/
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
#if HAVE_DEV_ATTR_MAX_SEND_SGE
ch->max_send_sge = sdev->dev_attr.max_send_sge;
ch->max_recv_sge = sdev->dev_attr.max_recv_sge;
#else

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2006 - 2009 Mellanox Technology Inc. All rights reserved.
* Copyright (C) 2009 - 2017 Bart Van Assche <bvanassche@acm.org>.
* Copyright (C) 2009 - 2018 Bart Van Assche <bvanassche@acm.org>.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU