Type: improvement
Let fifo segment mainly deal with fifo and chunk allocations not
initialization.
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I1f1eb5a1423ba52cb950ae771641fd7eeff4e76c
{
c->start_byte = 0;
c->length = rounded_data_size;
- c->enq_rb_index = RBTREE_TNIL_INDEX;
- c->deq_rb_index = RBTREE_TNIL_INDEX;
c->next = head;
head = c;
cmem += sizeof (*c) + rounded_data_size;
CLIB_MEM_UNPOISON (c, sizeof (*c));
next = c->next;
fl_index = fs_freelist_for_size (c->length);
- c->enq_rb_index = RBTREE_TNIL_INDEX;
- c->deq_rb_index = RBTREE_TNIL_INDEX;
fss_chunk_free_list_push (fss, fl_index, c);
n_collect += fs_freelist_index_to_size (fl_index);
c = next;
*/
f->start_chunk->start_byte = 0;
prev = f->start_chunk;
+ prev->enq_rb_index = prev->deq_rb_index = RBTREE_TNIL_INDEX;
c = prev->next;
while (c)
{
c->start_byte = prev->start_byte + prev->length;
+ c->enq_rb_index = c->deq_rb_index = RBTREE_TNIL_INDEX;
prev = c;
c = c->next;
}