]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix missing cleanup of ethtool steering during rep rx cleanup
authorMaor Dickman <maord@mellanox.com>
Wed, 8 Jul 2020 10:01:36 +0000 (13:01 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 19:55:37 +0000 (12:55 -0700)
commit52d3add085063ecaf3ce42975fcb4c7289d4b77a
tree5521460cb31498b303863aac9c8bf8a4171730bc
parent41ca90a02cde991464abded99da54c831041608e
net/mlx5e: Fix missing cleanup of ethtool steering during rep rx cleanup

The cited commit add initialization of ethtool steering during
representor rx initializations without cleaning it up in representor
rx cleanup, this may cause for stale ethtool flows to remain after
moving back from switchdev mode to legacy mode.

Fixed by calling ethtool steering cleanup during rep rx cleanup.

Fixes: 1b5efcc4254c ("net/mlx5e: Init ethtool steering for representors")
Signed-off-by: Maor Dickman <maord@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c