Re: [dpdk-dev] [PATCH] net/mlx5: fix counter container resize

2020-05-14 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Matan Azrad > Sent: Tuesday, May 12, 2020 3:52 PM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix counter container resize > > The design of counter cont

Re: [dpdk-dev] [PATCH] net/mlx5: fix counter container resize

2020-05-13 Thread Slava Ovsiienko
> -Original Message- > From: Matan Azrad > Sent: Tuesday, May 12, 2020 15:52 > To: dev@dpdk.org > Cc: Slava Ovsiienko ; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix counter container resize > > The design of counter container resize used double buffer algorithm in order > to synchroni

[dpdk-dev] [PATCH] net/mlx5: fix counter container resize

2020-05-12 Thread Matan Azrad
The design of counter container resize used double buffer algorithm in order to synchronize between the query thread to the control thread. When the control thread detected resize need, it created new bigger buffer for the counter pools in a new container and change the container index atomically.