[openib-general] Re: Some CM ib_destroy_cm_id errors?

Libor Michalek libor at topspin.com
Wed Jan 26 15:40:28 PST 2005


On Wed, Jan 26, 2005 at 03:55:07PM -0800, Sean Hefty wrote:
> On Wed, 26 Jan 2005 14:30:48 -0800
> Libor Michalek <libor at topspin.com> wrote:
> 
> > >   It's comming back from ib_create_cm_id with a local_id of 0, which
> > > explains why my REPs are being dropped as well.
> > 
> >   Looks like the issue is with the 'struct idr' table. The way that
> > allocation is implemented, the communication identifier local_id
> > needs to be the first element in 'struct ib_cm_id' Because the 
> > ib_cm_id structure is cast to an int pointer into which idr_get_new_above()
> > writes the id.
> 
> Thanks for looking into this more.  I'm not sure how this worked before.
> Were these just warnings in the log file?
> 
> I think a slightly better solution is to set the local_id directly,
> rather than relying on it being the first entry in the cm_id.  Can you
> try with this patch in place of yours?

  Thanks, this works as well and makes more sense as a fix.

-Libor



More information about the general mailing list