标签: DPDK
DPDK20.05 hash表4 – rte_hash_lookup
2020年7月24日
rte_hash_lookup() 函数在hash表中查找指定的key。 1、rte_hash_lookup( […]
DPDK20.05 hash表3 – rte_hash_del_key
该函数用来删除hash表中的指定key。 1、rte_hash_del_key [crayon-651a821 […]
DPDK20.05 hash表2 – rte_hash_add_key
该函数用来向 hash 表中添加表项。 本文以 DPDK 20.05 版本中的hash为例。 1、数据结构 1 […]
DPDK20.05 hash表1 – rte_hash_create 与 rte_hash_free
1、数据结构 rte_hash_create() 函数用来创建一个hash表,涉及到如下数据结构。 1.1 s […]
DPDK17.02内存池管理3 – rte_pktmbuf_pool_create
2020年7月17日
该函数用来创建一个 mbuf 内存池并初始化。 1、rte_pktmbuf_pool_create() 函数 […]
DPDK17.02内存池管理2 – rte_mempool_ops
内存池通过DPDK中注册的一系列处理函数进行管理操作。 1、数据结构 共涉及到两个数据结构。 1.1 stru […]
DPDK17.02内存池管理1 – rte_mempool_create_empty
该函数定义一个空的内存池,只有头部,未分配实际的数据内存空间。 1、数据结构 struct rte_mempo […]
DPDK20.05 – rte_memcpy函数
2020年7月16日
DPDK中,rte_memcpy 函数是一个非常典型的 DPDK 利用其SIMD指令,对常规函数进行优化的一个 […]
DPDK17.02 ring 管理4 – common_ring_mc_dequeue
该函数是针对多消费者的出队函数,其调用关系如下:
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) |
近期评论