RE: [PATCH v2 3/7] libibverbs: Add support for XRC SRQs

2012-09-28 Thread Hefty, Sean
+static inline uint32_t ibv_get_srq_num(struct ibv_srq *srq) +{ + struct verbs_context *vctx = verbs_get_ctx_op(srq-context, get_srq_num); + if (!vctx) { + errno = ENOSYS; + return 0; + } + return vctx-get_srq_num(srq); +} Do you think the

[PATCH v2 3/7] libibverbs: Add support for XRC SRQs

2012-09-27 Thread Hefty, Sean
XRC support requires the use of a new type of SRQ. XRC shared receive queues: xrc srq's are similar to normal srq's, except that they are bound to an xrcd, rather than to a protection domain. Based on the current spec and implementation, they are only usable with xrc qps. To support xrc srq's,

Re: [PATCH v2 3/7] libibverbs: Add support for XRC SRQs

2012-09-27 Thread Jason Gunthorpe
On Fri, Sep 28, 2012 at 12:02:34AM +, Hefty, Sean wrote: +static inline uint32_t ibv_get_srq_num(struct ibv_srq *srq) +{ + struct verbs_context *vctx = verbs_get_ctx_op(srq-context, get_srq_num); + if (!vctx) { + errno = ENOSYS; + return 0; + } +