RE: [PATCH] net/mlx5: fix indexed pool fetch overlap issue

2022-03-02 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Suanming Mou > Sent: Wednesday, February 23, 2022 8:26 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: Raslan Darawsheh ; dev@dpdk.org; > sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix indexed pool fetch overlap issue > &g

[PATCH] net/mlx5: fix indexed pool fetch overlap issue

2022-02-22 Thread Suanming Mou
For indexed pool with local cache, when a new trunk is allocated, half of the trunk's index was fetched to the local cache. In case of local cache size was less then half of the trunk size, memory overlap happened. This commit adds the check of the fetch size, if local cache size is less than fetc