X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2Fsvm_fifo.c;fp=src%2Fsvm%2Fsvm_fifo.c;h=d357eb6b8a99ee7b070091e972a890f9f8659b7b;hb=91b364010cc81260f81af19bae6fd5ec22ee3b90;hp=d49cbe2bf7df0951330c55c1759e3b4b866c2c77;hpb=d9ed0b67866fa6b8a5f449fdb8da8d6aacb5f225;p=vpp.git diff --git a/src/svm/svm_fifo.c b/src/svm/svm_fifo.c index d49cbe2bf7d..d357eb6b8a9 100644 --- a/src/svm/svm_fifo.c +++ b/src/svm/svm_fifo.c @@ -389,11 +389,13 @@ svm_fifo_init (svm_fifo_t * f, u32 size) */ 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; }