Hi,

> -----Original Message-----
> From: Dariusz Sosnowski <dsosnow...@nvidia.com>
> Sent: Wednesday, February 28, 2024 9:06 PM
> To: Slava Ovsiienko <viachesl...@nvidia.com>; Ori Kam <or...@nvidia.com>;
> Suanming Mou <suanmi...@nvidia.com>; Matan Azrad
> <ma...@nvidia.com>; Jack Min <jack...@nvidia.com>
> Cc: dev@dpdk.org; sta...@dpdk.org; Bing Zhao <bi...@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: jack...@nvidia.com
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Dariusz Sosnowski <dsosnow...@nvidia.com>
> Acked-by: Ori Kam <or...@nvidia.com>
> Acked-by: Bing Zhao <bi...@nvidia.com>

Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh

Reply via email to