Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
b7d3d6d8
Commit
b7d3d6d8
authored
May 04, 2018
by
Misbah Mubarak
Browse files
allowing packets to take non-minimal routes
parent
e1a79130
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly-custom.C
View file @
b7d3d6d8
...
...
@@ -2851,7 +2851,7 @@ router_packet_receive( router_state * s,
// printf("\n Packet %llu source %d arrived at router %d ", msg->packet_ID, msg->src_terminal_id, s->router_id);
/* Set the default route as minimal for prog-adaptive */
if
(
routing
==
PROG_ADAPTIVE
&&
cur_chunk
->
msg
.
last_hop
==
TERMINAL
)
if
(
(
routing
==
PROG_ADAPTIVE
||
routing
==
ADAPTIVE
)
&&
cur_chunk
->
msg
.
last_hop
==
TERMINAL
)
cur_chunk
->
msg
.
path_type
=
MINIMAL
;
/* for prog-adaptive routing, record the current route of packet */
...
...
@@ -2901,9 +2901,6 @@ router_packet_receive( router_state * s,
cur_chunk
->
msg
.
path_type
=
MINIMAL
;
}
if
(
dest_router_id
==
s
->
router_id
)
cur_chunk
->
msg
.
path_type
=
MINIMAL
;
next_path_type
=
cur_chunk
->
msg
.
path_type
;
if
(
cur_chunk
->
msg
.
path_type
!=
MINIMAL
&&
cur_chunk
->
msg
.
path_type
!=
NON_MINIMAL
)
...
...
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