Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caitlin Ross
codes
Commits
3fe3d2b5
Commit
3fe3d2b5
authored
Apr 08, 2016
by
Misbah Mubarak
Browse files
adding slimfly mapping todos in model-net test
parent
fdac5b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/modelnet-test.c
View file @
3fe3d2b5
...
...
@@ -355,6 +355,7 @@ static void handle_kickoff_event(
int
opt_offset
=
0
;
int
total_lps
=
num_servers
*
2
+
num_routers
;
/* TODO: Noah, we need slimfly specific mapping here! */
if
(
net_id
==
DRAGONFLY
&&
(
lp
->
gid
%
lps_per_rep
==
num_servers_per_rep
-
1
))
opt_offset
=
num_servers_per_rep
+
num_routers_per_rep
;
/* optional offset due to dragonfly mapping */
...
...
@@ -447,6 +448,7 @@ static void handle_ack_event(
// printf("\n m->src %d lp->gid %d ", m->src, lp->gid);
int
opt_offset
=
0
;
/* TODO: Noah, we need slimfly specific mapping here! */
if
(
net_id
==
DRAGONFLY
&&
(
lp
->
gid
%
lps_per_rep
==
num_servers_per_rep
-
1
))
opt_offset
=
num_servers_per_rep
+
num_routers_per_rep
;
/* optional offset due to dragonfly mapping */
...
...
@@ -504,6 +506,7 @@ static void handle_req_event(
/* safety check that this request got to the right server */
// printf("\n m->src %d lp->gid %d ", m->src, lp->gid);
int
opt_offset
=
0
;
/* TODO: Noah, we need slimfly specific mapping here! */
if
(
net_id
==
DRAGONFLY
&&
(
m
->
src
%
lps_per_rep
==
num_servers_per_rep
-
1
))
opt_offset
=
num_servers_per_rep
+
num_routers_per_rep
;
/* optional offset due to dragonfly mapping */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment