Hi,

> -----Original Message-----
> From: Suanming Mou <suanmi...@mellanox.com>
> Sent: Thursday, June 18, 2020 11:13 AM
> To: Matan Azrad <ma...@mellanox.com>; Slava Ovsiienko
> <viachesl...@mellanox.com>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasl...@mellanox.com>
> Subject: [PATCH v2] net/mlx5: optimize free counter lookup
> 
> Currently, when allocate a new counter, it needs loop the whole
> container pool list to get a free counter.
> 
> In the case with millions of counters allocated, and all the pools
> are empty, allocate the new counter will still need to loop the
> whole container pool list first, then allocate a new pool to get a
> free counter. It wastes the cycles during the pool list traversal.
> 
> Add a global free counter list in the container helps to get the free
> counters more efficiently.
> 
> Signed-off-by: Suanming Mou <suanmi...@mellanox.com>
> Acked-by: Matan Azrad <ma...@mellanox.com>
> ---
> 
> v2: update the commit title.
> 
> This patch should be integrated after
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatch
> es.dpdk.org%2Fcover%2F71716%2F&amp;data=02%7C01%7Crasland%40mell
> anox.com%7C6ee45fdcd79c4e70c9dd08d8135f67f0%7Ca652971c7d2e4d9ba6
> a4d149256f461b%7C0%7C0%7C637280647785241368&amp;sdata=93W%2B7FJ
> 8Z8zuoo2XsU%2B0YkHdVzTTo2xMXtrQx85N%2FCo%3D&amp;reserved=0
> 


Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

Reply via email to