Commit 19782842 authored by Nikhil's avatar Nikhil

Send remote only if we have data

Change-Id: I31e9ca9f33dc4829e60c69baf9fca45efd7a0f62
parent f2bf9976
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment