[openib-general] APM support in openib stack

Tang, Changqing changquing.tang at hp.com
Tue Jan 2 14:11:55 PST 2007


Sorry, I find the function  'ib_sa_path_rec_get()'  in kernel code. Then
here is my question:

Is there any way (instruction) to fill in struct 'ib_sa_path_rec' inside
struct 'ib_cm_req_param' without using librdmacm.so ?

Thank you very much.

--CQ


> -----Original Message-----
> From: openib-general-bounces at openib.org 
> [mailto:openib-general-bounces at openib.org] On Behalf Of Tang, 
> Changqing
> Sent: Tuesday, January 02, 2007 3:46 PM
> To: somenath; Sean Hefty
> Cc: openib-general at openib.org
> Subject: Re: [openib-general] APM support in openib stack
> 
> 
> Hi,
> 	I don't see function 'ib_sa_path_rec_get()' anywhere in 
> the trunk, Is this a new function to be checked in ?
> 
> 	Thanks.
> 
> --CQ
> 
> 
> > 
> > thanks for ur reply.
> > I use
> >  ib_sa_path_rec_get(
> >                     device,
> >                     HCA_PRM_PORT,           /* first port 
> =1, second 
> > port=2 */
> >                     &path_rec,
> >                     IB_SA_PATH_REC_DGID | IB_SA_PATH_REC_SGID |
> >                     IB_SA_PATH_REC_NUMB_PATH
> >                     | IB_SA_PATH_REC_PKEY,
> >                     5000,
> >                     GFP_KERNEL,
> >                     func_completion,
> >                     context,
> >                     &query)
> > 
> > to get the primary path, and make the same call with 
> HCA_ALT_PORT (=2) 
> > to get the alternate path.
> > 
> > primary path has the source and destination gid for the HCA port 1, 
> > alternate path the source and destination gid for the HCA port 2.
> > 
> > using these two paths, I send the REQ, otherwise gets the REQ...
> > (I can dump the primary and alternate path received in req 
> handler to 
> > check everything is ok, will try that next..)
> > 
> > do you remember when you checked in the working code?
> > I am wondering if the RHEL4 U4 binary distrition of redhat has your 
> > changes.
> > 
> > thanks, som.
> > 
> > 
> > _______________________________________________
> > openib-general mailing list
> > openib-general at openib.org
> > http://openib.org/mailman/listinfo/openib-general
> > 
> > To unsubscribe, please visit
> > http://openib.org/mailman/listinfo/openib-general
> > 
> > 
> 
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit 
> http://openib.org/mailman/listinfo/openib-general
> 
> 




More information about the general mailing list