Re: [dpdk-dev] [PATCH 1/2] eal: add API to align integer to previous power of 2

2018-02-17 Thread Matan Azrad
Hi Pavan Please see some comments below. From: Pavan Nikhilesh, Saturday, February 17, 2018 12:50 PM > Add 32b and 64b API's to align the given integer to the previous power of 2. > > Signed-off-by: Pavan Nikhilesh > --- > lib/librte_eal/common/include/rte_common.h | 36 >

Re: [dpdk-dev] release/acquire memory barriers and ring

2018-02-17 Thread Burakov, Anatoly
On 13-Feb-18 7:37 PM, Alex Kiselev wrote: Hi. I've been wondering should I use a release/acquire memory barrier pair in order to be sure that the other thread will see the fully/corrected initialized object passed to it via a dpdk ring or ring itself is a kind of barrier? Let's say I have a pse

[dpdk-dev] [PATCH 2/2] test: update common auto test

2018-02-17 Thread Pavan Nikhilesh
Update common auto test to include test for previous power of 2 for both 32 and 64bit integers. Signed-off-by: Pavan Nikhilesh --- test/test/test_common.c | 24 1 file changed, 24 insertions(+) diff --git a/test/test/test_common.c b/test/test/test_common.c index d034243

[dpdk-dev] [PATCH 1/2] eal: add API to align integer to previous power of 2

2018-02-17 Thread Pavan Nikhilesh
Add 32b and 64b API's to align the given integer to the previous power of 2. Signed-off-by: Pavan Nikhilesh --- lib/librte_eal/common/include/rte_common.h | 36 ++ 1 file changed, 36 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_