Re: [dpdk-dev] [PATCH 1/2] test/memzone: add test for memzone count in eal mem config

2018-01-29 Thread Burakov, Anatoly
On 27-Jan-18 2:53 PM, Radoslaw Biernacki wrote: Looks OK. Following note is aside from the patch. Might be beneficial (in some rare cases) to add bailout recovery with goto's in test_memzone_basic() Just in case one of the rte_memzone_reserve() we should not make return -1, but instead a goto to

Re: [dpdk-dev] [PATCH 1/2] test/memzone: add test for memzone count in eal mem config

2018-01-27 Thread Radoslaw Biernacki
Looks OK. Following note is aside from the patch. Might be beneficial (in some rare cases) to add bailout recovery with goto's in test_memzone_basic() Just in case one of the rte_memzone_reserve() we should not make return -1, but instead a goto to below section where we call rte_memzone_free(). T

[dpdk-dev] [PATCH 1/2] test/memzone: add test for memzone count in eal mem config

2018-01-26 Thread Anatoly Burakov
Ensure that memzone count in eal mem config is incremented and decremented whenever memzones are allocated and freed. Signed-off-by: Anatoly Burakov --- test/test/test_memzone.c | 20 1 file changed, 20 insertions(+) diff --git a/test/test/test_memzone.c b/test/test/test_me