[lng-odp] problem about packet_alloc() function.

2018-01-26 Thread lin huang
Hi all, I checked the code of odp-dpdk. And I got a problem which confused me a lot. In the function packet_alloc(), odp tried to alloc a buffer which originated from the mbuf at the dpdk memory pool. After that, rte_pktmbuf_alloc() got a pointer which ponted to the beginning of mbuf structure

[lng-odp] problem about packet_alloc() function.

2018-01-25 Thread lin huang
Hi all, I checked the code of odp-dpdk. And I got a problem which confused me a lot. In the function packet_alloc(), odp tried to alloc a buffer which originated from the mbuf at the dpdk memory pool. After that, rte_pktmbuf_alloc() got a pointer which ponted to the beginning of mbuf structur

Re: [lng-odp] problem about packet_alloc() function.

2018-01-25 Thread Maxim Uvarov
CC lng-odp-dpdk mailing list. On 26 January 2018 at 04:27, lin huang wrote: > Hi all, > I checked the code of odp-dpdk. And I got a problem which confused me > a lot. > In the function packet_alloc(), odp tried to alloc a buffer which > originated from the mbuf at the dpdk memory pool. > Aft

[lng-odp] problem about packet_alloc() function.

2018-01-25 Thread lin huang
Hi all, I checked the code of odp-dpdk. And I got a problem which confused me a lot. In the function packet_alloc(), odp tried to alloc a buffer which originated from the mbuf at the dpdk memory pool. After that, rte_pktmbuf_alloc() got a pointer which ponted to the beginning of mbuf structur