[PATCH] net/mlx5: fix indexed pool fetch overlap issue
Raslan Darawsheh
rasland at nvidia.com
Wed Mar 2 11:19:28 CET 2022
Hi,
> -----Original Message-----
> From: Suanming Mou <suanmingm at nvidia.com>
> Sent: Wednesday, February 23, 2022 8:26 AM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>
> Cc: Raslan Darawsheh <rasland at nvidia.com>; dev at dpdk.org;
> stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix indexed pool fetch overlap issue
>
> 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 fetch size, adjust the fetch size to be local cache
> size.
>
> Fixes: d15c0946beea ("net/mlx5: add indexed pool local cache")
> Cc: stable at dpdk.org
>
> Signed-off-by: Suanming Mou <suanmingm at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list