[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1828884A29C6694DAF28B7E6B8A82373FF9E@ORSMSX101.amr.corp.intel.com>
Date: Thu, 19 May 2011 18:35:39 +0000
From: "Hefty, Sean" <sean.hefty@...el.com>
To: Roland Dreier <roland@...nel.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>
Subject: RE: [RFC 2/3] RDMA/cma: Add support for netlink statistics export
> 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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists