[ofa-general] [PATCH] opensm/osm_sa_lft_record.c: fix block number encoding byte order
Sasha Khapyorsky
sashak at voltaire.com
Sat Oct 18 16:27:03 PDT 2008
Block number shouldbe encoded in SA LFT Record in network byte order.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_sa_lft_record.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_sa_lft_record.c b/opensm/opensm/osm_sa_lft_record.c
index e1fe8d5..013a1bf 100644
--- a/opensm/opensm/osm_sa_lft_record.c
+++ b/opensm/opensm/osm_sa_lft_record.c
@@ -97,7 +97,7 @@ __osm_lftr_rcv_new_lftr(IN osm_sa_t * sa,
memset(p_rec_item, 0, sizeof(*p_rec_item));
p_rec_item->rec.lid = lid;
- p_rec_item->rec.block_num = block;
+ p_rec_item->rec.block_num = cl_hton16(block);
/* copy the lft block */
osm_switch_get_fwd_tbl_block(p_sw, block, p_rec_item->rec.lft);
--
1.6.0.1.196.g01914
More information about the general
mailing list