[ofw] [PATCH 2/2] [ib-diags] saquery: set correct pkey table field
Sean Hefty
sean.hefty at intel.com
Thu Feb 26 14:44:26 PST 2009
port_num is incorrectly set instead of block_num
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
I will resubmit the changes for saquery to support winof. I must have done
something wrong with my testing on that patch on linux, since I'm seeing
build warnings now.
infiniband-diags/src/saquery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index bcd1f61..3f508b9 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -1267,7 +1267,7 @@ static int query_pkey_tbl_records(const struct query_cmd *q,
memset(&pktr, 0, sizeof(pktr));
CHECK_AND_SET_VAL(lid, 16, 0, pktr.lid, PKEY, LID);
CHECK_AND_SET_VAL(port, 8, -1, pktr.port_num, PKEY, PORT);
- CHECK_AND_SET_VAL(block, 16, -1, pktr.port_num, PKEY, BLOCK);
+ CHECK_AND_SET_VAL(block, 16, -1, pktr.block_num, PKEY, BLOCK);
return get_and_dump_any_records(h, IB_SA_ATTR_PKEYTABLERECORD, 0,
comp_mask, &pktr, smkey,
More information about the ofw
mailing list