Hi, > -----Original Message----- > From: Dariusz Sosnowski <[email protected]> > Sent: Wednesday, February 28, 2024 9:06 PM > To: Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; > Suanming Mou <[email protected]>; Matan Azrad > <[email protected]>; Jack Min <[email protected]> > Cc: [email protected]; [email protected]; Bing Zhao <[email protected]> > 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: [email protected] > Cc: [email protected] > > Signed-off-by: Dariusz Sosnowski <[email protected]> > Acked-by: Ori Kam <[email protected]> > Acked-by: Bing Zhao <[email protected]>
Patch applied to next-net-mlx, Kindest regards Raslan Darawsheh

