Re: [dpdk-dev] Memory allocation in libraries

2019-10-10 Thread Burakov, Anatoly
On 09-Oct-19 10:38 AM, Bruce Richardson wrote: On Wed, Oct 09, 2019 at 10:13:07AM +0200, Morten Brørup wrote: Hi all, I just noticed an inconsistency in the use of memory allocation: Some libraries allocate their data structures using the rte_memzone library, e.g. the rte_ring library: http://

Re: [dpdk-dev] Memory allocation in libraries

2019-10-09 Thread Bruce Richardson
On Wed, Oct 09, 2019 at 10:13:07AM +0200, Morten Brørup wrote: > Hi all, > > I just noticed an inconsistency in the use of memory allocation: > > Some libraries allocate their data structures using the rte_memzone library, > e.g. the rte_ring library: > http://code.dpdk.org/dpdk/latest/source/lib

[dpdk-dev] Memory allocation in libraries

2019-10-09 Thread Morten Brørup
Hi all, I just noticed an inconsistency in the use of memory allocation: Some libraries allocate their data structures using the rte_memzone library, e.g. the rte_ring library: http://code.dpdk.org/dpdk/latest/source/lib/librte_ring/rte_ring.c#L163 And some libraries allocate their data structur