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
Xin Wang
codes-dev
Commits
923172bb
Commit
923172bb
authored
Aug 11, 2016
by
Noah Wolfe
Committed by
Nikhil
Aug 22, 2016
Browse files
Changed queued_length to be incremented in buf_update() and decremented in buf_update_rc()
parent
632f2669
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/fattree.c
View file @
923172bb
...
...
@@ -1751,7 +1751,7 @@ void switch_buf_update(switch_state * s, tw_bf * bf, fattree_message * msg,
bf
->
c1
=
1
;
fattree_message_list
*
head
=
return_head
(
s
->
queued_msgs
,
s
->
queued_msgs_tail
,
indx
);
s
->
queued_length
[
indx
]
-
=
s
->
params
->
chunk_size
;
s
->
queued_length
[
indx
]
+
=
s
->
params
->
chunk_size
;
switch_credit_send
(
s
,
bf
,
&
head
->
msg
,
lp
,
1
);
append_to_fattree_message_list
(
s
->
pending_msgs
,
s
->
pending_msgs_tail
,
indx
,
head
);
...
...
@@ -2512,7 +2512,7 @@ void switch_rc_event_handler(switch_state * s, tw_bf * bf,
prepend_to_fattree_message_list
(
s
->
queued_msgs
,
s
->
queued_msgs_tail
,
indx
,
head
);
s
->
vc_occupancy
[
indx
]
-=
s
->
params
->
chunk_size
;
s
->
queued_length
[
indx
]
+
=
s
->
params
->
chunk_size
;
s
->
queued_length
[
indx
]
-
=
s
->
params
->
chunk_size
;
}
if
(
bf
->
c2
)
{
codes_local_latency_reverse
(
lp
);
...
...
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