mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user