[ofa-general] How to use some ibv_wc fields ?

Tang, Changqing changquing.tang at hp.com
Mon Oct 1 09:14:50 PDT 2007


OK, thanks. qp_num is something like process PID.

I really wish 'struct ibv_wc' had qp_context field(void *) application
given when creating QP.


--CQ



> -----Original Message-----
> From: Todd Rimmer [mailto:todd.rimmer at qlogic.com] 
> Sent: Monday, October 01, 2007 10:37 AM
> To: Tang, Changqing; general at lists.openfabrics.org
> Subject: RE: [ofa-general] How to use some ibv_wc fields ?
> 
> 
> 
> > From: Tang, Changqing
> > Sent: Monday, October 01, 2007 11:20 AM
> > To: general at lists.openfabrics.org
> > Subject: [ofa-general] How to use some ibv_wc fields ?
> > 
> > 
> > Another question, how is qp number assigned to a QP ? is it 
> a random 
> > number, or a number from 1 and then increasing with QPs ? 
> one process 
> > basis or on node basis ?
> 
> 
> The assignment depends on the specifics of the HCA driver.
> QP 0 and QP 1 are well known and defined by the spec for management.
> The remaining 2^24 QPs are up to the hardware and driver.  A 
> given QP number is unique per HCA.  As QPs are destroyed and 
> created, QP numbers may be reused, however at a given point 
> in time, only a single QP in the HCA will exist with the given number.
> 
> Todd Rimmer
> Chief Architect
> QLogic System Interconnect Group
> Voice: 610-233-4852     Fax: 610-233-4777
> Todd.Rimmer at QLogic.com  www.QLogic.com
>  
> 
> 



More information about the general mailing list