[dpdk-stable] [PATCH 19.11] net/mlx5: fix counter query
Luca Boccassi
bluca at debian.org
Wed Aug 12 14:42:37 CEST 2020
On Tue, 2020-08-11 at 16:59 +0800, Suanming Mou wrote:
> [ upstream commit e1293b10dea9bbae2cb2ebc47b5066df73275e2f ]
>
> Currently, the counter query requires the counter ID should start
> with 4 aligned. In none-batch mode, the counter pool might have the
> chance to get the counter ID not 4 aligned. In this case, the counter
> should be skipped, or the query will be failed.
>
> Skip the counter with ID not 4 aligned as the first counter in the
> none-batch count pool to avoid invalid counter query. Once having
> new min_dcs ID in the poll less than the skipped counters, the
> skipped counters will be returned to the pool free list to use.
>
> Fixes: 5382d28c2110 ("net/mlx5: accelerate DV flow counter transactions")
> Signed-off-by: Suanming Mou <suanmingm at mellanox.com>
> ---
> drivers/net/mlx5/mlx5.h | 4 +-
> drivers/net/mlx5/mlx5_flow.c | 6 +++
> drivers/net/mlx5/mlx5_flow_dv.c | 94 ++++++++++++++++++++++++++++++++-
> drivers/net/mlx5/mlx5_prm.h | 3 ++
> 4 files changed, 104 insertions(+), 3 deletions(-)
Thanks, applied and pushed.
FYI: Gmail marked this email as spam - I noticed it by coincidence.
You'll probably want to mention this to your IT folks.
--
Kind regards,
Luca Boccassi
More information about the stable
mailing list