rte_mempool_createif((flags & MEMPOOL_F_SP_PUT) && (flags &MEMPOOL_F_SC_GET)) ret= rte_mempool_set_ops_byname(mp,"ring_sp_sc", NULL);elseif(flags &MEMPOOL_F_SP_PUT) ret= rte_mempool_set_ops_byname(mp,"ring_sp_mc", NULL);elseif(flags &MEMPOOL_F_SC_GET) ret= rte_mempool...
rte_mempool_createif((flags & MEMPOOL_F_SP_PUT) && (flags &MEMPOOL_F_SC_GET)) ret= rte_mempool_set_ops_byname(mp,"ring_sp_sc", NULL);elseif(flags &MEMPOOL_F_SP_PUT) ret= rte_mempool_set_ops_byname(mp,"ring_sp_mc", NULL);elseif(flags &MEMPOOL_F_SC_GET) ret= rte_mempool...
static__rte_always_inlineintrte_mempool_do_generic_get(structrte_mempool*mp,void**obj_table,unsignedintn,structrte_mempool_cache*cache){intret;unsignedintremaining;uint32_tindex,len;void**cache_objs;/* No cache provided */if(unlikely(cache==NULL)){remaining=n;gotodriver_dequeue;}/* The ca...
(ERR, MEMPOOL, "Maximum number of mempool ops structs exceeded\n"); return -ENOSPC; } if (h->alloc == NULL || h->enqueue == NULL || h->dequeue == NULL || h->get_count == NULL) { rte_spinlock_unlock(&rte_mempool_ops_table.sl); RTE_LOG(ERR, MEMPOOL, "Missing callback ...
Whether rte_mempool_ops need supports the scenario where the producer and consumer are in the same thread? Currently, "ring_sp_sc" can be used in this scenario, but its dequeue and enqueue functions have memory barriers, which are not required in the same ...
items += cpy_count;if(pe->type == RTE_FLOW_ITEM_TYPE_END) { pb = pe;break; } pb = pe +1; }/* Copy the END item. */rte_memcpy(items, pe,sizeof(struct rte_flow_item)); } 开发者ID:cleveritcz,项目名称:f-stack,代码行数:34,代码来源:rte_flow_classify_parse.c ...
By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturing Government View all industries View all solutions Resources Topics AI DevOps Security Software Development View all Explore Learning Pathways White papers, Ebooks, Web...
(struct rte_mempool *sess_mp,uint8_tdev_id,uint16_tqp_id,conststruct cperf_options *options,conststruct cperf_test_vector *test_vector,conststruct cperf_op_fns *op_fns){structcperf_pmd_cyclecount_ctx*ctx=NULL;/* preallocate buffers for crypto ops as they can get quite big */size_...
dpdk 使用 mbuf 保存 packet,mempool 用于操作 mbuf。 数据结构: rte_mbuf——dpdk对报文的封装结构 rte_ring——dpdk无锁缓冲区,用于高性能的生产者消费者场景,比如virtio的前后端收发报文。 常用函数: rte_…
将一个文件或SOCKET的句柄fd传递给多个线程,进行读、写和Close操作,是否安全了?答案是“否”,这类似...