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)
commitd4a16052bccdd695982f89d815ca075825115821
treee67fcca9611c36b1dde9e20b1460a30d2886b6db
parent8c7353b6f716436ad0bfda2b5c5524ab2dde5894
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: 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>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c