[PATCH] net/mlx5: fix counter cache starvation
Raslan Darawsheh
rasland at nvidia.com
Thu Feb 29 14:35:35 CET 2024
Hi,
> -----Original Message-----
> From: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Sent: Wednesday, February 28, 2024 9:06 PM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>;
> Suanming Mou <suanmingm at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Jack Min <jackmin at nvidia.com>
> Cc: dev at dpdk.org; stable at dpdk.org; Bing Zhao <bingz at nvidia.com>
> Subject: [PATCH] net/mlx5: fix counter cache starvation
>
> mlx5 PMD maintains a global counter pool and per-queue counter cache,
> which are used to allocate COUNT flow action objects.
> Whenever an empty cache is accessed, it is replenished with a pre-defined
> number of counters.
>
> If number of configured counters was sufficiently small, then it might have
> happened that caches associated with some queues could get starved because
> all counters were fetched on other queues.
>
> This patch fixes that by disabling cache at runtime if number of configured
> counters is not sufficient to avoid such starvation.
>
> Fixes: 4d368e1da3a4 ("net/mlx5: support flow counter action for HWS")
> Cc: jackmin at nvidia.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Acked-by: Ori Kam <orika at nvidia.com>
> Acked-by: Bing Zhao <bingz at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the dev
mailing list