[ofa-general] saquery port problems

Matthias Blankenhaus matthias at sgi.com
Thu May 29 11:32:47 PDT 2008



On Thu, 22 May 2008, Sasha Khapyorsky wrote:

> Hi Matthias,
> 
> On 16:48 Wed 21 May     , Matthias Blankenhaus wrote:
> > I have a patch that fixes the problem:
> > 
> > diff -Narpu infiniband-diags-1.3.6.vanilla/src/saquery.c my/src/saquery.c
> > --- infiniband-diags-1.3.6.vanilla/src/saquery.c        2008-02-28 
> > 00:58:36.000000000 -0800
> > +++ my/src/saquery.c    2008-05-21 16:08:19.583221794 -0700
> > @@ -1304,13 +1304,13 @@ get_bind_handle(void)
> >                         ca_name_index++;
> >                 if (sa_port_num && sa_port_num != attr_array[i].port_num)
> >                         continue;
> > -               if (sa_hca_name && i == 0)
> > -                       continue;
> >                 if (sa_hca_name
> >                  && strcmp(sa_hca_name, vendor->ca_names[ca_name_index]) != 0)
> >                         continue;
> > -               if (attr_array[i].link_state == IB_LINK_ACTIVE)
> > +               if (attr_array[i].link_state == IB_LINK_ACTIVE) {
> >                         port_guid = attr_array[i].port_guid;
> > +                       break;
> > +                }
> >         }
> > 
> > 
> > I have tested it and it solves the problem.
> > 
> > Does this look ok ?
> 
> Yes, this looks correct. Thanks for fixing this. I just will need your
> 'Signed-off-by:' line in order to apply the patch.

Sorry, I don't know what that is :-) This is my first patch for OFED, 
excuse my ignorance.

Please, let me know if this helps:

Signed-off-by:  matthias at sgi.com


Matthias

> 
> Sasha
> 



More information about the general mailing list