[PATCH] net/mlx5: fix the E-Switch mirror flow rule validation

Raslan Darawsheh rasland at nvidia.com
Tue Oct 31 09:03:05 CET 2023


Hi,

> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw at nvidia.com>
> Sent: Wednesday, October 11, 2023 9:43 AM
> To: Suanming Mou <suanmingm at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>;
> stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix the E-Switch mirror flow rule validation
> 
> The port action and jump to flow table action are not supported in the mirror
> flows (RTE_FLOW_ACTION_TYPE_SAMPLE with sample ratio=1) in E-Switch
> domain (transfer attribute set) without presented encap action.
> 
> The encap action is supported for uplink port only. So, if flow with mirroring
> contains  encap action application should provide encap and uplink port
> actions in the mirror action list and PMD validates this condition (to make sure
> we cover the hardware limitation).
> 
> This patch adds the validation for E-Switch mirror flow rule checking and
> rejects as invalid.
> 
> Fixes: 6a951567c159 ("net/mlx5: support E-Switch mirroring and jump in one
> flow")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list