[ofa-general] [PATCH] ibsim: fix port initial state

Sasha Khapyorsky sashak at voltaire.com
Mon Feb 9 06:19:15 PST 2009


Port initial state was ACTIVE in PortInfo template for connected ports.
This prevented from OpenSM to make INIT -> ARMED -> ACTIVE PortInfo
transition typical for a real fabric.

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

diff --git a/ibsim/sim_net.c b/ibsim/sim_net.c
index ee268e0..7a42cb6 100644
--- a/ibsim/sim_net.c
+++ b/ibsim/sim_net.c
@@ -80,7 +80,7 @@ static const uint8_t swport[] = {
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x02,
-	0x14, 0x52, 0x00, 0x11, 0x40, 0x40, 0x00, 0x08,
+	0x12, 0x52, 0x00, 0x11, 0x40, 0x40, 0x00, 0x08,
 	0x08, 0x04, 0xFF, 0x10, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -102,7 +102,7 @@ static const uint8_t hcaport[] = {
 	0xFE, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x02, 0x00, 0x01, 0x00, 0x50, 0x02, 0x48,
 	0x00, 0x00, 0x0F, 0xF9, 0x01, 0x03, 0x03, 0x02,
-	0x14, 0x52, 0x00, 0x11, 0x40, 0x40, 0x00, 0x08,
+	0x12, 0x52, 0x00, 0x11, 0x40, 0x40, 0x00, 0x08,
 	0x08, 0x04, 0xFF, 0x10, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x20, 0x1F, 0x00, 0x00, 0x00, 0x00,
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-- 
1.6.1.2.319.gbd9e




More information about the general mailing list