DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] rte_reorder_free_mbufs function for librte_reorder
@ 2016-05-18 12:55 ASM
  0 siblings, 0 replies; only message in thread
From: ASM @ 2016-05-18 12:55 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-18 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-18 12:55 [dpdk-dev] rte_reorder_free_mbufs function for librte_reorder ASM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).