Message ID | 20130328075540.GA11235@r-ufm5-17.mtr.labs.mlnx (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Ira Weiny |
Headers | show |
On Thu, 28 Mar 2013 09:55:40 +0200 Dan Ben Yosef <danby@mellanox.com> wrote: > when we pull LFT we pull extra block, this may cause to failure. > > Signed-off-by: Dan Ben Yosef <danby@mellanox.com> Thanks, applied, Ira > --- > src/ibroute.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/ibroute.c b/src/ibroute.c > index df48382..d4827c9 100644 > --- a/src/ibroute.c > +++ b/src/ibroute.c > @@ -360,7 +360,7 @@ char *dump_unicast_tables(ib_portid_t * portid, int startlid, int endlid) > printf(" Port Info \n"); > startblock = startlid / IB_SMP_DATA_SIZE; > endblock = ALIGN(endlid, IB_SMP_DATA_SIZE) / IB_SMP_DATA_SIZE; > - for (block = startblock; block <= endblock; block++) { > + for (block = startblock; block < endblock; block++) { > int status; > DEBUG("reading block %d", block); > if (!smp_query_status_via(lft, portid, IB_ATTR_LINEARFORWTBL, block, > -- > 1.7.1 >
diff --git a/src/ibroute.c b/src/ibroute.c index df48382..d4827c9 100644 --- a/src/ibroute.c +++ b/src/ibroute.c @@ -360,7 +360,7 @@ char *dump_unicast_tables(ib_portid_t * portid, int startlid, int endlid) printf(" Port Info \n"); startblock = startlid / IB_SMP_DATA_SIZE; endblock = ALIGN(endlid, IB_SMP_DATA_SIZE) / IB_SMP_DATA_SIZE; - for (block = startblock; block <= endblock; block++) { + for (block = startblock; block < endblock; block++) { int status; DEBUG("reading block %d", block); if (!smp_query_status_via(lft, portid, IB_ATTR_LINEARFORWTBL, block,
when we pull LFT we pull extra block, this may cause to failure. Signed-off-by: Dan Ben Yosef <danby@mellanox.com> --- src/ibroute.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)