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; }