From 0556c29fdd17b09db85d5079d5a194c06873aeb1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 8 Jun 2016 21:19:24 +0000 Subject: [PATCH] ib_srpt: Port to Linux kernel v4.7 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6896 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index f4f0f698a..1715dbbb0 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -419,7 +419,11 @@ static void srpt_get_class_port_info(struct ib_dm_mad *mad) memset(cif, 0, sizeof(*cif)); cif->base_version = 1; cif->class_version = 1; +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) cif->resp_time_value = 20; +#else + ib_set_cpi_resp_time(cif, 20); +#endif mad->mad_hdr.status = 0; }