> +static u8 cma_get_ib_subnet_timeout(struct rdma_cm_id *id)
> +{
> +     struct ib_port_attr attr;
> +     int ret;
> +
> +     ret = ib_query_port(id->device, id->port_num, &attr);
> +     return ret == 0 ? attr.subnet_timeout : 18;
> +}

Can we query the port once (or only on a change) and cache the result, rather 
than querying it for every request?

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to