Re: [dpdk-dev] [PATCH] eal: fix end for bounded malloc elements

2018-01-12 Thread Thomas Monjalon
21/12/2017 17:54, Anatoly Burakov: > In cases when alignment is bigger than boundary, we may incorrectly > calculate end of a bounded malloc element. > > Consider this: suppose we are allocating a bounded malloc element > that should be of 128 bytes in size, bounded to 128 bytes and > aligned on a

[dpdk-dev] [PATCH] eal: fix end for bounded malloc elements

2017-12-21 Thread Anatoly Burakov
In cases when alignment is bigger than boundary, we may incorrectly calculate end of a bounded malloc element. Consider this: suppose we are allocating a bounded malloc element that should be of 128 bytes in size, bounded to 128 bytes and aligned on a 256-byte boundary. Suppose our malloc element