[dpdk-dev] [PATCH 3/5] mbuf: fix free_space setting for dynamic field

2020-06-13 Thread Xiaolong Ye
The value free_space[i] is used to save the size of biggest aligned element that can fit in the zone, current implementation has one flaw, for example, if user registers dynfield1 (size = 4, align = 4, req = 124) first, the free_space would be as below after registration: 0070: 08 08 08 08 08 08

Re: [dpdk-dev] [PATCH 3/5] mbuf: fix free_space setting for dynamic field

2020-06-25 Thread Olivier Matz
On Sat, Jun 13, 2020 at 11:49:19PM +0800, Xiaolong Ye wrote: > The value free_space[i] is used to save the size of biggest aligned > element that can fit in the zone, current implementation has one flaw, > for example, if user registers dynfield1 (size = 4, align = 4, req = 124) > first, the free_s