[PATCH 21.11] net/mlx5: fix NIC egress flow mismatch in switchdev mode

Kevin Traynor ktraynor at redhat.com
Wed Mar 16 16:18:52 CET 2022


On 12/03/2022 07:58, Jiawei Wang wrote:
> [ upstream commit 6d4f1066be6cd60a95f21ef07a16a3c3676c5cd9 ]
> 
> When E-Switch mode was enabled, the NIC egress flows was implicitly
> appended with source vport to match on. If the metadata register C0
> was used to maintain the source vport, it was initialized to zero
> on packet steering engine entry, the flow could be hit only
> if source vport was zero, the register C0 of the packet was not correct
> to match in the TX side, this caused egress flow misses.
> 
> This patch:
>   - removes the implicit source vport match for NIC egress flow.
>   - rejects the NIC egress flows on the representor ports at validation.
>   - allows the internal NIC egress flows containing the TX_QUEUE items in
>     order to not impact hairpins.
> 
> Fixes: ce777b147bf8 ("net/mlx5: fix E-Switch flow without port item")
> 
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> Acked-by: Ori Kam <orika at nvidia.com>
> ---

Thanks Jiawei. I have queued this [0] and will push to dpdk.org with the 
next batch of backports on Monday.

[0] 
https://github.com/kevintraynor/dpdk-stable/commit/82361afbedc11452986c141f97baa8867839b0c4



More information about the stable mailing list