]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix VLAN create flow
authorAya Levin <ayal@nvidia.com>
Sun, 13 Sep 2020 15:05:40 +0000 (18:05 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Oct 2020 17:59:58 +0000 (10:59 -0700)
commit3a4bb1cafad31b5031cce8104b0c712a747dd97b
treee67fcca9611c36b1dde9e20b1460a30d2886b6db
parent688ae699a5a7a1a51bc3044da725a7673fffa443
net/mlx5e: Fix VLAN create flow

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: e36df364fc1a ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c