RE: [PATCH] net/mlx5: fix indexed pool local cache crash

2022-11-09 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, November 9, 2022 2:58 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Michael Baum > Subject: [PATCH] net/mlx5: fix indexed pool local cach

RE: [PATCH] net/mlx5: fix indexed pool local cache crash

2022-11-09 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, November 9, 2022 14:58 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava Ovsiienko > ; Matan Azrad ; Michael Baum > > Subject: [PATCH] net/mlx5: fix indexed pool local cache crash

[PATCH] net/mlx5: fix indexed pool local cache crash

2022-11-09 Thread Alexander Kozyrev
Local cache for an indexed pool is not initialized in the situation when all the indices are allocated on one CPU core and freed on another one. That leads to a crash once we try to check its reference counter. Check that the local cache is initialized before accessing this counter. Fixes: d15c094