]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Fix VLAN create flow
authorAya Levin <ayal@nvidia.com>
Sun, 13 Sep 2020 15:05:40 +0000 (18:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Oct 2020 09:55:57 +0000 (11:55 +0200)
commiteef0da1560402615a513ee9cc6d46bb1d3afffab
tree6f20f7ed120586b5087e5f8f4de601bdd7578e3a
parentb6dc435f360340d574a8c7b2f3e42142bc99bbbc
net/mlx5e: Fix VLAN create flow

[ Upstream commit d4a16052bccdd695982f89d815ca075825115821 ]

When interface is attached while in promiscuous mode and with VLAN
filtering turned off, both configurations are not respected and VLAN
filtering is performed.
There are 2 flows which add the any-vid rules during interface attach:
VLAN creation table and set rx mode. Each is relaying on the other to
add any-vid rules, eventually non of them does.

Fix this by adding any-vid rules on VLAN creation regardless of
promiscuous mode.

Fixes: 9df30601c843 ("net/mlx5e: Restore vlan filter after seamless reset")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c