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
19782842
Commit
19782842
authored
Aug 22, 2016
by
Nikhil
Browse files
Send remote only if we have data
Change-Id: I31e9ca9f33dc4829e60c69baf9fca45efd7a0f62
parent
f2bf9976
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/fattree.c
View file @
19782842
...
...
@@ -2080,8 +2080,9 @@ void ft_packet_arrive(ft_terminal_state * s, tw_bf * bf, fattree_message * msg,
if
(
msg
->
packet_ID
==
LLU
(
TRACK_PKT
))
printf
(
"
\n
Packet %llu has been sent from lp %llu
\n
"
,
msg
->
packet_ID
,
LLU
(
lp
->
gid
));
//assert(tmp->remote_event_data && tmp->remote_event_size > 0);
ft_send_remote_event
(
s
,
msg
,
lp
,
bf
,
tmp
->
remote_event_data
,
tmp
->
remote_event_size
);
if
(
tmp
->
remote_event_data
&&
tmp
->
remote_event_size
>
0
)
{
ft_send_remote_event
(
s
,
msg
,
lp
,
bf
,
tmp
->
remote_event_data
,
tmp
->
remote_event_size
);
}
/* Remove the hash entry */
qhash_del
(
hash_link
);
rc_stack_push
(
lp
,
tmp
,
free_tmp
,
s
->
st
);
...
...
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