public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
@ 2009-09-23 21:45 Ira Weiny
       [not found] ` <20090923144555.9efa2c75.weiny2-i2BcT+NCU+M@public.gmane.org>
  2009-09-29 15:41 ` [ofa-general] " Sasha Khapyorsky
  0 siblings, 2 replies; 4+ messages in thread
From: Ira Weiny @ 2009-09-23 21:45 UTC (permalink / raw)
  To: Sasha Khapyorsky
  Cc: OpenFabrics, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org


From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
Date: Wed, 23 Sep 2009 14:26:55 -0700
Subject: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan

	Also ibd_sm_id is never valid in this tool as the "-s" option is used
	for "suppress"

Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
---
 infiniband-diags/src/ibqueryerrors.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/infiniband-diags/src/ibqueryerrors.c b/infiniband-diags/src/ibqueryerrors.c
index f73ca6f..892e539 100644
--- a/infiniband-diags/src/ibqueryerrors.c
+++ b/infiniband-diags/src/ibqueryerrors.c
@@ -441,8 +441,8 @@ int main(int argc, char **argv)
 	} else if (switch_guid_str) {
 		if ((resolved =
 		     ib_resolve_portid_str_via(&portid, switch_guid_str,
-					       IB_DEST_GUID, ibd_sm_id,
-					       ibmad_port)) >= 0)
+					       IB_DEST_GUID, NULL,
+					       ibmad_port)) < 0)
 			IBWARN("Failed to resolve %s; attempting full scan\n",
 			       switch_guid_str);
 	}
-- 
1.5.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
       [not found] ` <20090923144555.9efa2c75.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2009-09-29 11:04   ` Sasha Khapyorsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sasha Khapyorsky @ 2009-09-29 11:04 UTC (permalink / raw)
  To: Ira Weiny; +Cc: OpenFabrics, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On 14:45 Wed 23 Sep     , Ira Weiny wrote:
> 
> From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> Date: Wed, 23 Sep 2009 14:26:55 -0700
> Subject: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
> 
> 	Also ibd_sm_id is never valid in this tool as the "-s" option is used
> 	for "suppress"
> 
> Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>

Applied. Thanks.

Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ofa-general] Re: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
  2009-09-23 21:45 [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan Ira Weiny
       [not found] ` <20090923144555.9efa2c75.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2009-09-29 15:41 ` Sasha Khapyorsky
  2009-09-29 17:25   ` Ira Weiny
  1 sibling, 1 reply; 4+ messages in thread
From: Sasha Khapyorsky @ 2009-09-29 15:41 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma@vger.kernel.org, OpenFabrics

On 14:45 Wed 23 Sep     , Ira Weiny wrote:
> 
> From: Ira Weiny <weiny2@llnl.gov>
> Date: Wed, 23 Sep 2009 14:26:55 -0700
> Subject: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
> 
> 	Also ibd_sm_id is never valid in this tool as the "-s" option is used
> 	for "suppress"
> 
> Signed-off-by: Ira Weiny <weiny2@llnl.gov>
> ---
>  infiniband-diags/src/ibqueryerrors.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/infiniband-diags/src/ibqueryerrors.c b/infiniband-diags/src/ibqueryerrors.c
> index f73ca6f..892e539 100644
> --- a/infiniband-diags/src/ibqueryerrors.c
> +++ b/infiniband-diags/src/ibqueryerrors.c
> @@ -441,8 +441,8 @@ int main(int argc, char **argv)
>  	} else if (switch_guid_str) {
>  		if ((resolved =
>  		     ib_resolve_portid_str_via(&portid, switch_guid_str,
> -					       IB_DEST_GUID, ibd_sm_id,
> -					       ibmad_port)) >= 0)
> +					       IB_DEST_GUID, NULL,

BTW, why should 'ibd_sm_id' be replaced by NULL?

Sasha

> +					       ibmad_port)) < 0)
>  			IBWARN("Failed to resolve %s; attempting full scan\n",
>  			       switch_guid_str);
>  	}
> -- 
> 1.5.4.5
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
  2009-09-29 15:41 ` [ofa-general] " Sasha Khapyorsky
@ 2009-09-29 17:25   ` Ira Weiny
  0 siblings, 0 replies; 4+ messages in thread
From: Ira Weiny @ 2009-09-29 17:25 UTC (permalink / raw)
  To: Sasha Khapyorsky
  Cc: OpenFabrics, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Tue, 29 Sep 2009 17:41:45 +0200
Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org> wrote:

> On 14:45 Wed 23 Sep     , Ira Weiny wrote:
> > 
> > From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> > Date: Wed, 23 Sep 2009 14:26:55 -0700
> > Subject: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan
> > 
> > 	Also ibd_sm_id is never valid in this tool as the "-s" option is used
> > 	for "suppress"

To answer your question below:

Because the ibd_sm_id is never going to be overridden because the "-s" option is used for "suppress".  So NULL should used for the default for now.  I did not want to change the -s option now.  Some day I can fix this up to be consistent with the other tools.  Sorry.

> > 
> > Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> > ---
> >  infiniband-diags/src/ibqueryerrors.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/infiniband-diags/src/ibqueryerrors.c b/infiniband-diags/src/ibqueryerrors.c
> > index f73ca6f..892e539 100644
> > --- a/infiniband-diags/src/ibqueryerrors.c
> > +++ b/infiniband-diags/src/ibqueryerrors.c
> > @@ -441,8 +441,8 @@ int main(int argc, char **argv)
> >  	} else if (switch_guid_str) {
> >  		if ((resolved =
> >  		     ib_resolve_portid_str_via(&portid, switch_guid_str,
> > -					       IB_DEST_GUID, ibd_sm_id,
> > -					       ibmad_port)) >= 0)
> > +					       IB_DEST_GUID, NULL,
> 
> BTW, why should 'ibd_sm_id' be replaced by NULL?

See above,
Ira

> 
> Sasha
> 
> > +					       ibmad_port)) < 0)
> >  			IBWARN("Failed to resolve %s; attempting full scan\n",
> >  			       switch_guid_str);
> >  	}
> > -- 
> > 1.5.4.5
> > 


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-29 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23 21:45 [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan Ira Weiny
     [not found] ` <20090923144555.9efa2c75.weiny2-i2BcT+NCU+M@public.gmane.org>
2009-09-29 11:04   ` Sasha Khapyorsky
2009-09-29 15:41 ` [ofa-general] " Sasha Khapyorsky
2009-09-29 17:25   ` Ira Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox