Re: [PATCH] net/mlx5: optimize counters ID greneration logic

2025-06-04 Thread Raslan Darawsheh
Hi, On 25/04/2025 6:55 PM, Alexander Kozyrev wrote: Enqueue generated counter IDs on a ring in bulk. Generate them and store in an array before putting them on a ring all at once. That bring better cache access and speeds up the mlx5_hws_cnt_pool_create() function. Signed-off-by: Alexander Koz

Re: [PATCH] net/mlx5: optimize counters ID greneration logic

2025-06-03 Thread Dariusz Sosnowski
Hi, On Fri, Apr 25, 2025 at 06:55:12PM +0300, Alexander Kozyrev wrote: > Enqueue generated counter IDs on a ring in bulk. > Generate them and store in an array before putting them > on a ring all at once. That bring better cache access > and speeds up the mlx5_hws_cnt_pool_create() function. > >

[PATCH] net/mlx5: optimize counters ID greneration logic

2025-04-25 Thread Alexander Kozyrev
Enqueue generated counter IDs on a ring in bulk. Generate them and store in an array before putting them on a ring all at once. That bring better cache access and speeds up the mlx5_hws_cnt_pool_create() function. Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_hws_cnt.c | 19