]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix vlan data lost during suspend flow
authorMoshe Shemesh <moshe@nvidia.com>
Sat, 2 Oct 2021 08:15:35 +0000 (11:15 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Oct 2021 17:42:50 +0000 (10:42 -0700)
commit8610b0164ed28765acc3bc3fcfa15d19b8fa9bf1
treeaacd18d824faf751c4f47bf35ca8b6cc68c771ed
parent5b3d4a5313da540ad30f465b3a3866bc02f067ac
net/mlx5e: Fix vlan data lost during suspend flow

During suspend flow the driver calls mlx5e_destroy_vlan_table() which
does not only delete the vlans steering flow rules, but also frees the
data on currently active vlans, thus it is not restored during resume
flow.

This fix keeps the vlan data on suspend flow and frees it only on driver
remove flow.

Fixes: 72542d65c630 ("net/mlx5e: Dynamic alloc vlan table for netdev when needed")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c