Re: [dpdk-dev] [PATCH v2] net/mlx5: optimize free counter lookup

2020-06-21 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Suanming Mou > Sent: Thursday, June 18, 2020 11:13 AM > To: Matan Azrad ; Slava Ovsiienko > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v2] net/mlx5: optimize free counter lookup > > Currently, when allocate a new counter, it needs loop the w

[dpdk-dev] [PATCH v2] net/mlx5: optimize free counter lookup

2020-06-18 Thread Suanming Mou
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