[dpdk-dev] rte_reorder_free_mbufs function for librte_reorder

ASM asm at asm.pp.ru
Wed May 18 14:55:55 CEST 2016


Hi folks.

I want to use stand alone rte_ring and rte_reorder library's.
Without mempool.

For rte_ring I can call rte_ring_get_memsize() function, alloc memory
by self and use rte_ring.
But reorder don't have rte_reorder_get_memsize. Struct
rte_reorder_buffer is private.

Furthermore, code have DRY (don't repeat yourself ) problem.
For example:
line 86: const unsigned int min_bufsize = sizeof(*b) +  (2 * size *
sizeof(struct rte_mbuf *));
line 132: const unsigned int bufsize = sizeof(struct
rte_reorder_buffer) +(2 * size * sizeof(struct rte_mbuf *));

Is it possible to add rte_reorder_get_memsize for librte_reorder?

Thanks.

---
Best regards,
Leonid Myravjev


More information about the dev mailing list