[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-rdma
Subject: [PATCH] infiniband-diags/dump_fts: fix block calculation for LFT's
From: Ira Weiny <ira.weiny () intel ! com>
Date: 2013-03-28 15:48:38
Message-ID: 20130328084838.a898ff3b7d90b8cdd23c4c44 () intel ! com
[Download RAW message or body]
This fix was found by Dan Ben Yosef in ibroute. ibroute and dump_fts should
share this code but for now fix the bug in dump_fts.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
---
src/dump_fts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/dump_fts.c b/src/dump_fts.c
index 6cf51f1..89f0dce 100644
--- a/src/dump_fts.c
+++ b/src/dump_fts.c
@@ -343,7 +343,7 @@ void dump_unicast_tables(ibnd_node_t * node, 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
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic