* How to free a ring?
@ 2013-09-11 7:37 Dmitry Vyal
[not found] ` <52301DA2.2060806-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Vyal @ 2013-09-11 7:37 UTC (permalink / raw)
To: dev-VfR2kkLFssw
Hello all.
Is there a way to deallocate an rte_ring? Maybe I'm missing something,
but I can't find an API function for that at
http://dpdk.org/doc/api/rte__ring_8h.html
Regards,
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to free a ring?
[not found] ` <52301DA2.2060806-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2013-09-11 7:46 ` AndyChen
[not found] ` <CAHhF9PG+s4Kxgco8VsD+PNsT1SimuYTfkVyXcDhZPqbX1Ez1WA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-11 7:57 ` mydpdk
1 sibling, 1 reply; 4+ messages in thread
From: AndyChen @ 2013-09-11 7:46 UTC (permalink / raw)
To: Dmitry Vyal; +Cc: dev-VfR2kkLFssw
Dpdk hasn't API to free ring/memzone/mempool, what's the scene you must
free the ring?
On Wed, Sep 11, 2013 at 3:37 PM, Dmitry Vyal <dmitryvyal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello all.
>
> Is there a way to deallocate an rte_ring? Maybe I'm missing something, but
> I can't find an API function for that at
> http://dpdk.org/doc/api/rte__**ring_8h.html<http://dpdk.org/doc/api/rte__ring_8h.html>
>
> Regards,
> Dmitry
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to free a ring?
[not found] ` <52301DA2.2060806-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-11 7:46 ` AndyChen
@ 2013-09-11 7:57 ` mydpdk
1 sibling, 0 replies; 4+ messages in thread
From: mydpdk @ 2013-09-11 7:57 UTC (permalink / raw)
To: Dmitry Vyal; +Cc: dev-VfR2kkLFssw
It seems that there are no APIs to free a ring.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to free a ring?
[not found] ` <CAHhF9PG+s4Kxgco8VsD+PNsT1SimuYTfkVyXcDhZPqbX1Ez1WA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-09-11 9:07 ` Dmitry Vyal
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Vyal @ 2013-09-11 9:07 UTC (permalink / raw)
To: AndyChen; +Cc: dev-VfR2kkLFssw
On 09/11/2013 11:46 AM, AndyChen wrote:
> Dpdk hasn't API to free ring/memzone/mempool, what's the scene you
> must free the ring?
>
Well, I'm writing a packet defragmenting code. I have a data structure
consisting of a rte_hash, a rte_ring and an array allocated with
rte_zmalloc. All these besides the ring can be freed. So looks like I
can't destruct my object after allocating. Strictly speaking, I don't
have to. The need shouldn't arise in normal situation. I just considered
writing allocating/deallocating function pairs and processing all
allocation errors to be a good practice.
Isn't it a bit strange to have rte_hash_free() and not have
rte_ring_free()? What's the reason for this?
Best wishes,
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-11 9:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 7:37 How to free a ring? Dmitry Vyal
[not found] ` <52301DA2.2060806-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-11 7:46 ` AndyChen
[not found] ` <CAHhF9PG+s4Kxgco8VsD+PNsT1SimuYTfkVyXcDhZPqbX1Ez1WA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-11 9:07 ` Dmitry Vyal
2013-09-11 7:57 ` mydpdk
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).