[PATCH 4/4] net/mlx5: fix redundant control rules in promiscuous mode

Dariusz Sosnowski dsosnowski at nvidia.com
Mon Jan 12 19:19:07 CET 2026


On Mon, Jan 12, 2026 at 11:24:38AM +0200, Maayan Kashani wrote:
> When promiscuous mode is enabled, the device receives all traffic
> regardless of destination MAC address. Previously, the code was
> setting both the promiscuous flag AND the DMAC/multicast control
> flow rules, which is redundant.
> 
> This patch makes the DMAC and multicast/broadcast control flow
> rules conditional on NOT being in promiscuous mode. When promiscuous
> mode is enabled, only the MLX5_CTRL_PROMISCUOUS flag is set.
> 
> Fixes: 9fa7c1cddb85 ("net/mlx5: create control flow rules with HWS")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Maayan Kashani <mkashani at nvidia.com>

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Best regards,
Dariusz Sosnowski


More information about the dev mailing list