[ofa-general] [PATCH] infiniband-diags/saquery: fix port encoding in PortInfoRecord
Sasha Khapyorsky
sashak at voltaire.com
Thu Jan 29 03:43:21 PST 2009
PortNum field in PortInfoRecord has length 8 bit so initial value should
not be converted to network byte order.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
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 9dd3bdb..0ba2d7f 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -1121,7 +1121,7 @@ static int query_portinfo_records(const struct query_cmd *q,
comp_mask |= IB_PIR_COMPMASK_LID;
}
if (port >= 0) {
- pir.port_num = cl_hton16(port);
+ pir.port_num = port;
comp_mask |= IB_PIR_COMPMASK_PORTNUM;
}
--
1.6.0.4.766.g6fc4a
More information about the general
mailing list