Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
09bf4ffa
Commit
09bf4ffa
authored
Jul 19, 2016
by
Nikhil
Browse files
Bug fix in dfly routing
Change-Id: I53f278953f2e287bf122cf20694a7db3bd1fd336
parent
06a7bce8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly.c
View file @
09bf4ffa
...
@@ -3022,7 +3022,7 @@ void router_buf_update_rc(router_state * s,
...
@@ -3022,7 +3022,7 @@ void router_buf_update_rc(router_state * s,
prepend_to_terminal_message_list
(
s
->
queued_msgs
[
indx
],
prepend_to_terminal_message_list
(
s
->
queued_msgs
[
indx
],
s
->
queued_msgs_tail
[
indx
],
output_chan
,
head
);
s
->
queued_msgs_tail
[
indx
],
output_chan
,
head
);
s
->
vc_occupancy
[
indx
][
output_chan
]
-=
s
->
params
->
chunk_size
;
s
->
vc_occupancy
[
indx
][
output_chan
]
-=
s
->
params
->
chunk_size
;
s
->
queued_count
[
indx
]
-
=
s
->
params
->
chunk_size
;
s
->
queued_count
[
indx
]
+
=
s
->
params
->
chunk_size
;
}
}
if
(
bf
->
c2
)
{
if
(
bf
->
c2
)
{
codes_local_latency_reverse
(
lp
);
codes_local_latency_reverse
(
lp
);
...
@@ -3054,7 +3054,7 @@ void router_buf_update(router_state * s, tw_bf * bf, terminal_message * msg, tw_
...
@@ -3054,7 +3054,7 @@ void router_buf_update(router_state * s, tw_bf * bf, terminal_message * msg, tw_
append_to_terminal_message_list
(
s
->
pending_msgs
[
indx
],
append_to_terminal_message_list
(
s
->
pending_msgs
[
indx
],
s
->
pending_msgs_tail
[
indx
],
output_chan
,
head
);
s
->
pending_msgs_tail
[
indx
],
output_chan
,
head
);
s
->
vc_occupancy
[
indx
][
output_chan
]
+=
s
->
params
->
chunk_size
;
s
->
vc_occupancy
[
indx
][
output_chan
]
+=
s
->
params
->
chunk_size
;
s
->
queued_count
[
indx
]
+
=
s
->
params
->
chunk_size
;
s
->
queued_count
[
indx
]
-
=
s
->
params
->
chunk_size
;
}
}
if
(
s
->
in_send_loop
[
indx
]
==
0
&&
s
->
pending_msgs
[
indx
][
output_chan
]
!=
NULL
)
{
if
(
s
->
in_send_loop
[
indx
]
==
0
&&
s
->
pending_msgs
[
indx
][
output_chan
]
!=
NULL
)
{
bf
->
c2
=
1
;
bf
->
c2
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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