[PATCH] net/mlx4: fix empty ETH spec with VLAN support
Raslan Darawsheh
rasland at nvidia.com
Tue Nov 23 14:26:01 CET 2021
Hi,
> -----Original Message-----
> From: Xiaoyu Min <jackmin at nvidia.com>
> Sent: Monday, November 22, 2021 3:53 PM
> To: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Dekel Peled <dekelp at mellanox.com>
> Cc: dev at dpdk.org; stable at dpdk.org
> Subject: [PATCH] net/mlx4: fix empty ETH spec with VLAN support
>
> When the ETH spec is empty MLX4 PMD doesn't allow match other criteria,
> which means the flow should be promisc one.
>
> Currently, PMD validates this by setting flow->promisc bit when ETH spec is
> empty and checking whether there is other rte_flow_item followed when
> flow->promisc is on.
>
> However, commit [1] adds support to match traffic only on VLAN id, the
> above validation logic should be changed accordingly.
>
> This patch changes the above validate logic by skipping flow->promisc check
> if this item is VLAN.
>
> Fixes: c0d239263156 ("net/mlx4: support flow w/o ETH spec and with VLAN")
> Cc: stable at dpdk.org
>
> [1]:
> commit c0d239263156 ("net/mlx4: support flow w/o ETH spec and with
> VLAN")
>
> Signed-off-by: Xiaoyu Min <jackmin at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> ---
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the stable
mailing list