> Is there an easy way to get the qp_type from a struct rdma_cm_id?
>
> ie what code needs to go into cma_get_id_stats() to handle this?
With the current code, you'd need to map from the port space:
static inline enum ib_qp_type cma_get_qp_type(struct rdma_cm_id *id)
{
if (id->ps == RDMA_PS_IPOIB || id->ps == RDMA_PS_UDP)
return IB_QPT_RC;
else
return IB_QPT_RC;
}
..
id_stats->qp_type = cma_get_qp_type(id);
..
One of the patches in the af_ib patch set adds the qp_type to struct
rdma_cm_id. I'm guessing that patch will also be needed for xrc.
- Sean
--
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