Commit 4516c885 authored by Nikhil's avatar Nikhil

Manually revert incorrect change.

Change-Id: If8c21b26eb9c04ee640e3ba3a4ab170a5b5e4555
parent 209c6ec4
...@@ -1821,7 +1821,7 @@ void switch_buf_update_rc(switch_state * s, ...@@ -1821,7 +1821,7 @@ void switch_buf_update_rc(switch_state * s,
prepend_to_fattree_message_list(s->queued_msgs, prepend_to_fattree_message_list(s->queued_msgs,
s->queued_msgs_tail, indx, head); s->queued_msgs_tail, indx, head);
s->vc_occupancy[indx] -= s->params->chunk_size; 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) if(bf->c2)
{ {
...@@ -1855,7 +1855,7 @@ void switch_buf_update(switch_state * s, tw_bf * bf, fattree_message * msg, ...@@ -1855,7 +1855,7 @@ void switch_buf_update(switch_state * s, tw_bf * bf, fattree_message * msg,
bf->c1 = 1; bf->c1 = 1;
fattree_message_list *head = return_head( s->queued_msgs, fattree_message_list *head = return_head( s->queued_msgs,
s->queued_msgs_tail, indx); 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); switch_credit_send( s, bf, &head->msg, lp, 1);
append_to_fattree_message_list( s->pending_msgs, s->pending_msgs_tail, append_to_fattree_message_list( s->pending_msgs, s->pending_msgs_tail,
indx, head); indx, head);
......
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