标签: rte_ring
DPDK17.02 ring 管理4 – common_ring_mc_dequeue
2020年7月16日
该函数是针对多消费者的出队函数,其调用关系如下:
1 2 3 | common_ring_mc_dequeue(struct rte_mempool *mp, void * const *obj_table, unsigned n) --> rte_ring_mc_dequeue_bulk(mp->pool_data, obj_table, n) --> __rte_ring_mc_do_dequeue(r, obj_table, n, RTE_RING_QUEUE_FIXED) |
DPDK17.02 ring 管理3 – common_ring_mp_enqueue
该函数是针对多生产者的入队函数,其调用关系如下:
1 2 3 | common_ring_mp_enqueue(struct rte_mempool *mp, void * const *obj_table, unsigned n) --> rte_ring_mp_enqueue_bulk(struct rte_ring *r, void * const *obj_table, unsigned n) --> __rte_ring_mp_do_enqueue(r, obj_table, n, RTE_RING_QUEUE_FIXED) |
DPDK17.02 ring 管理2 – common_ring_alloc 与 common_ring_free
1、common_ring_alloc 函数 common_ring_alloc 函数为指定 mempool […]
DPDK17.02 ring 管理1 – rte_ring_create 与 rte_ring_free
该函数用来创建一个ring。 1、ring结构 struct rte_ring 结构的定义如下; — […]
DPDK20.05 – rte_ring无锁环形队列的管理
2020年7月3日
1、简介 rte_ring库支持队列管理,该库并不是包含无限大小的链表,但支持以下特性: FIFO 最大大小尺 […]
近期评论