X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2Fsvm_fifo.c;h=018827e0343681e74bfa5d5804f43e4d5f5af4a9;hb=54693d23307ce8944a4d97379efd3bd4dcf0485c;hp=10c319236eeadc652be5a117137c8ddd527c09dd;hpb=b2371c25fed6b2e751163df590bb9d9a93a75a0f;p=vpp.git diff --git a/src/svm/svm_fifo.c b/src/svm/svm_fifo.c index 10c319236ee..018827e0343 100644 --- a/src/svm/svm_fifo.c +++ b/src/svm/svm_fifo.c @@ -179,7 +179,7 @@ format_svm_fifo (u8 * s, va_list * args) if (verbose > 1) s = format - (s, " server session %d thread %d client session %d thread %d\n", + (s, " vpp session %d thread %d app session %d thread %d\n", f->master_session_index, f->master_thread_index, f->client_session_index, f->client_thread_index); @@ -828,6 +828,13 @@ svm_fifo_dequeue_drop (svm_fifo_t * f, u32 max_bytes) return total_drop_bytes; } +void +svm_fifo_dequeue_drop_all (svm_fifo_t * f) +{ + f->head = f->tail; + __sync_fetch_and_sub (&f->cursize, f->cursize); +} + u32 svm_fifo_number_ooo_segments (svm_fifo_t * f) {