* [dpdk-stable] [PATCH] net/mlx5: fix the mirror not work with meter action
@ 2021-05-12 6:53 Jiawei Wang
2021-05-12 11:41 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Jiawei Wang @ 2021-05-12 6:53 UTC (permalink / raw)
To: viacheslavo, matan, orika, thomas, Shahaf Shuler; +Cc: dev, rasland, stable
While there's mirror action prior to the meter action in the E-Switch
flow, means that the packets should be duplicated into port firstly,
and then do meter and send to the original destination.
MLX5 PMD will split the above E-Switch flow into two sub flows,
similar as mirror with modify action before.
Fixes: 07627fbf1506 ("net/mlx5: support E-Switch mirroring with modify action")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
drivers/net/mlx5/mlx5_flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 3194cd5633..2d301de818 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -5125,6 +5125,7 @@ flow_check_match_action(const struct rte_flow_action actions[],
case RTE_FLOW_ACTION_TYPE_NVGRE_DECAP:
case RTE_FLOW_ACTION_TYPE_RAW_DECAP:
case RTE_FLOW_ACTION_TYPE_MODIFY_FIELD:
+ case RTE_FLOW_ACTION_TYPE_METER:
if (fdb_mirror)
*modify_after_mirror = 1;
break;
--
2.18.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-stable] [PATCH] net/mlx5: fix the mirror not work with meter action
2021-05-12 6:53 [dpdk-stable] [PATCH] net/mlx5: fix the mirror not work with meter action Jiawei Wang
@ 2021-05-12 11:41 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2021-05-12 11:41 UTC (permalink / raw)
To: Jiawei Wang
Cc: viacheslavo, matan, orika, Shahaf Shuler, stable, dev, rasland, stable
12/05/2021 08:53, Jiawei Wang:
> While there's mirror action prior to the meter action in the E-Switch
> flow, means that the packets should be duplicated into port firstly,
> and then do meter and send to the original destination.
> MLX5 PMD will split the above E-Switch flow into two sub flows,
> similar as mirror with modify action before.
>
> Fixes: 07627fbf1506 ("net/mlx5: support E-Switch mirroring with modify action")
> Cc: stable@dpdk.org
>
> Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Applied to next-net-mlx, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-12 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 6:53 [dpdk-stable] [PATCH] net/mlx5: fix the mirror not work with meter action Jiawei Wang
2021-05-12 11:41 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).