Message ID | 20090923144555.9efa2c75.weiny2@llnl.gov (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
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> Applied. Thanks. Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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); }