Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
b7d3d6d8
Commit
b7d3d6d8
authored
May 04, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allowing packets to take non-minimal routes
parent
e1a79130
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+1
-4
No files found.
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