[openib-general] [PATCH RFC] return qp pointer as part of ib_wc

Michael S. Tsirkin mst at mellanox.co.il
Wed Jan 3 08:13:26 PST 2007


> In IPoIB CM code, I have a common CQ shared by multiple QPs.
> To track connection usage, I need a way to get at some per-QP context
> upon the completion, and I would like to avoid allocating
> context object per work request just to stick a QP pointer into it.
> With this code, I can just use wc->qp->qp_context.

BTW, I just pushed this IPoIB CM code out to staging.
I'll post an updated patch RSN for -mm inclusion, but meanwhile
you can look at an example here:
git://git.openfabrics.org/git/~mst/linux-2.6/.git ipoib_cm_branch_2_6_20

Look under drivers/infiniband/ulp/ipoib/ipoib_cm.c

-- 
MST




More information about the general mailing list