summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/cli.c
AgeCommit message (Expand)AuthorFilesLines
2021-12-08memif: fix the memory leak when memif cli getting wrong parameters inputsHan Wu1-4/+12
2021-10-16memif: Enhance show memif descriptors to display regionSteven Luong1-14/+13
2020-12-14misc: move to new pool_foreach macrosDamjan Marion1-2/+1
2019-07-23api: binary api cleanupDave Barach1-1/+1
2018-09-12Fix create memif socketEd Warnicke1-16/+0
2018-04-04memif: zero copy slaveDamjan Marion1-15/+28
2018-03-22memif: version 2Damjan Marion1-4/+4
2018-02-09memif: fix crash caused by zero pkt len in memif and clear dirty cache while ...Chun Li1-4/+3
2018-01-29memif: Add new API calls to manage memif socket names.Jon Loeliger1-10/+197
2017-11-09memif: use clib_socket_t for socket connectionsDamjan Marion1-2/+3
2017-11-08memif: do not mask head and tail pointersDamjan Marion1-0/+3
2017-10-04[aarch64] Fixes CLI crashes on dpaa2 platform.Christophe Fontaine1-2/+2
2017-09-11memif: mode ip is not settable from binary APISteven1-2/+2
2017-06-19memif: add ip modeDamjan Marion1-1/+4
2017-06-16memif: show memif CLI enhancementSteven1-39/+115
2017-06-12memif: complete refactor of socket handling codeDamjan Marion1-52/+111
2017-05-31memif: multi-queues supportSteven1-3/+28
2017-03-22Add memif - packet memory interface for intra-host communicationDamjan Marion1-0/+202
n">counter_lock); memcpy(new_counter, per_cpu->counters, vec_len(per_cpu->counters)*4); old_counter = per_cpu->counters; per_cpu->counters = new_counter; vlib_refcount_unlock(per_cpu->counter_lock); CLIB_MEMORY_BARRIER(); vec_free(old_counter); } u64 vlib_refcount_get(vlib_refcount_t *r, u32 index) { u64 count = 0; vlib_thread_main_t *tm = vlib_get_thread_main (); u32 thread_index; for (thread_index = 0; thread_index < tm->n_vlib_mains; thread_index++) { vlib_refcount_lock(r->per_cpu[thread_index].counter_lock); if (index < vec_len(r->per_cpu[thread_index].counters)) { count += r->per_cpu[thread_index].counters[index]; } vlib_refcount_unlock(r->per_cpu[thread_index].counter_lock); } return count; }