Thread (2 messages) flat view 2 messages, 2 authors, 2021-01-27

Re: [dpdk-dev] [PATCH] net/mlx5: fix count actions query in sample flow

From: Raslan Darawsheh <hidden>
Date: 2021-01-27 15:39:43

Hi,
-----Original Message-----
From: dev <redacted> On Behalf Of Jiawei Wang
Sent: Tuesday, January 26, 2021 5:38 PM
To: Slava Ovsiienko <redacted>; Ori Kam
[off-list ref]; NBU-Contact-Thomas Monjalon
[off-list ref]; ferruh.yigit@intel.com
Cc: dev@dpdk.org; stable@dpdk.org
Subject: [dpdk-dev] [PATCH] net/mlx5: fix count actions query in sample
flow

If the count action was presented in sample actions list, MLX5 PMD
created the counter resource and saved the index of counter in the
sample resource only, the counter index of flow was not updated.

This patch removes the counter index in the sampler resource and
saves it into the flow, and adds the checking to make sure only one
count be created once per flow, it's used for all sample sub flows.

Fixes: 0756228b2704 ("net/mlx5: update translate function for sample
action")
Cc: stable@dpdk.org

Signed-off-by: Jiawei Wang <redacted>
Acked-by: Viacheslav Ovsiienko <redacted>
---
Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help