[ofa-general] [PATCH] ibsim: fix LocalPortNum in PortInfo response

Sasha Khapyorsky sashak at voltaire.com
Fri Feb 27 05:01:36 PST 2009


Fix LocalPortNum encoding in PortInfo responses.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 ibsim/sim_mad.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ibsim/sim_mad.c b/ibsim/sim_mad.c
index 6e08031..9253415 100644
--- a/ibsim/sim_mad.c
+++ b/ibsim/sim_mad.c
@@ -483,6 +483,7 @@ do_portinfo(Port * port, unsigned op, uint32_t portnum, uint8_t * data)
 
 	update_portinfo(p);
 	memcpy(data, p->portinfo, IB_SMP_DATA_SIZE);
+	mad_set_field(data, 0, IB_PORT_LOCAL_PORT_F, port->portnum);
 
 	return 0;
 }
-- 
1.6.1.2.319.gbd9e




More information about the general mailing list