设置mempool ops,rte_ring的分配和rte_ring的enqueue/dequeue均需要它,用做rte_ring的object申请和释放。 初始化mempool的pktmbuf pool的私有数据部分内存,即为struct rte_pktmbuf_pool_private结构。 从memzone中仅最大能力申请多的object,这些objs属于一个memory chunk,其内存信息大小由rte_mempool_memhdr结构体保存...
MEMPOOL_REGISTER_OPS(ops_sp_mc); common_ring_mc_dequeue(structrte_mempool *mp,void**obj_table, unsigned n) {returnrte_ring_mc_dequeue_bulk(mp->pool_data, obj_table, n, NULL)==0? -ENOBUFS :0; } rte_ring_mc_dequeue_bulk(structrte_ring *r,void**obj_table, unsignedintn, unsignedi...
MEMPOOL_REGISTER_OPS(ops_sp_mc); common_ring_mc_dequeue(structrte_mempool *mp,void**obj_table, unsigned n) {returnrte_ring_mc_dequeue_bulk(mp->pool_data, obj_table, n, NULL)==0? -ENOBUFS :0; } rte_ring_mc_dequeue_bulk(structrte_ring *r,void**obj_table, unsignedintn, unsignedi...
mempool ops\n"); return -EINVAL; } if (strlen(h->name) >= sizeof(ops->name) - 1) { rte_spinlock_unlock(&rte_mempool_ops_table.sl); RTE_LOG(DEBUG, EAL, "%s(): mempool_ops <%s>: name too long\n", __func__, h->name); rte_errno = EEXIST; return -EEXIST; } ops_...
Hi, 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 ...
* The index of the mbuf in the pool table.*/ void rte_pktmbuf_init(struct rte_mempool *mp, void *opaque_arg, void *m, unsigned i); /** * A packet mbuf pool constructor.* * This function initializes the mempool private data in the case of a * pktmbuf pool. This private...
mempool meter metrics mldev net node pcapng pci pdcp pdump pipeline port power rawdev rcu regexdev reorder rib ring sched security stack table telemetry timer vhost meson.build license usertools .editorconfig .gitattributes .gitignore .mailmap ABI_VERSION MAINTAINERS Makefile README VERSI...
mempool meter metrics mldev net node pcapng pci pdcp pdump pipeline port power rawdev rcu regexdev reorder rib ring sched security stack table telemetry timer vhost meson.build license usertools .editorconfig .gitattributes .gitignore .mailmap ABI_VERSION MAINTAINERS Makefile README VERSIO...
mempool meter metrics mldev net node pcapng pci pdcp pdump pipeline port power rawdev rcu regexdev reorder rib ring sched security stack table telemetry timer vhost meson.build license usertools .editorconfig .gitattributes .gitignore .mailmap ABI_VERSION MAINTAINERS Makefile README VERSIO...