]> 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)
commit61c8aebed24c1723973e7cb619808e9630451098
treeaacd18d824faf751c4f47bf35ca8b6cc68c771ed
parent9bd34f36422f54e469829a80cfeec99020d374bb
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: 88577547339b ("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