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
This commit is contained in:
Bart Van Assche
2016-06-08 21:19:24 +00:00
parent 353d1f1928
commit 0556c29fdd
+4
View File
@@ -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;
}