]> 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)
commite12bf9d64fca907f2a5f220f287c706cebf107be
treee67fcca9611c36b1dde9e20b1460a30d2886b6db
parentd2ec9c7e1634d07c32e233948dfb5ef26f1f6735
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: 69f08ba4d6c5 ("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