[ofa-general] ***SPAM*** [PATCH] ibsim/sim_net.c: In new_node, fix nodetype in nodeinfo for router nodes
hnrose at comcast.net
hnrose at comcast.net
Sat Feb 14 05:57:00 PST 2009
>From 17350f5a17ec5ec821607aae7bf94a88b84d6e74 Mon Sep 17 00:00:00 2001
From: Hal Rosenstock <hal.rosenstock at gmail.com>
Date: Thu, 12 Feb 2009 10:57:20 -0500
Subject: [PATCH] ibsim/sim_net.c: In new_node, fix nodetype in nodeinfo for router nodes
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
ibsim/sim_net.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ibsim/sim_net.c b/ibsim/sim_net.c
index 7a42cb6..f0628ec 100644
--- a/ibsim/sim_net.c
+++ b/ibsim/sim_net.c
@@ -322,6 +322,8 @@ static Node *new_node(int type, char *nodename, char *nodedesc, int nodeports)
guids[type]++; // reserve single guid;
} else {
memcpy(nd->nodeinfo, hcanodeinfo, sizeof(nd->nodeinfo));
+ if (type == ROUTER_NODE)
+ mad_set_field(nd->nodeinfo, 0, IB_NODE_TYPE_F, ROUTER_NODE);
guids[type] += nodeports + 1; // reserve guids;
}
--
1.5.6.4
More information about the general
mailing list