From: ASM <asm@asm.pp.ru>
To: dev@dpdk.org
Subject: [dpdk-dev] rte_reorder_free_mbufs function for librte_reorder
Date: Wed, 18 May 2016 15:55:55 +0300 [thread overview]
Message-ID: <CAMmAVbWoT0RLOygxz6xzYh5nFyxu1F7Rb-kRKuP4xvzvMXxMkg@mail.gmail.com> (raw)
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
reply other threads:[~2016-05-18 12:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMmAVbWoT0RLOygxz6xzYh5nFyxu1F7Rb-kRKuP4xvzvMXxMkg@mail.gmail.com \
--to=asm@asm.pp.ru \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).