Re: [dpdk-dev] [PATCH 7/8] net/mlx4: align Tx descriptors number

2017-12-06 Thread Matan Azrad
Hi Adrien > -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Wednesday, December 6, 2017 12:59 PM > To: Matan Azrad > Cc: dev@dpdk.org > Subject: Re: [PATCH 7/8] net/mlx4: align Tx descriptors number > > On Tue, Nov 28, 2017 at 12:19:29PM +, Mat

Re: [dpdk-dev] [PATCH 7/8] net/mlx4: align Tx descriptors number

2017-12-06 Thread Adrien Mazarguil
On Tue, Nov 28, 2017 at 12:19:29PM +, Matan Azrad wrote: > Using power of 2 descriptors number makes the ring management easier > and allows to use mask operation instead of wraparound conditions. > > Adjust Tx descriptor number to be power of 2 and change calculation to > use mask accordingly

[dpdk-dev] [PATCH 7/8] net/mlx4: align Tx descriptors number

2017-11-28 Thread Matan Azrad
Using power of 2 descriptors number makes the ring management easier and allows to use mask operation instead of wraparound conditions. Adjust Tx descriptor number to be power of 2 and change calculation to use mask accordingly. Signed-off-by: Matan Azrad --- drivers/net/mlx4/mlx4_rxtx.c | 22 +