On Thu, 28 Mar 2013 09:55:40 +0200 Dan Ben Yosef <[email protected]> wrote:
> when we pull LFT we pull extra block, this may cause to failure. > > Signed-off-by: Dan Ben Yosef <[email protected]> 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 > -- Ira Weiny <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
