Skip to content

Commit 0e2e7aa

Browse files
maordSaeed Mahameed
authored andcommitted
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: 6783e8b ("net/mlx5e: Init ethtool steering for representors") Signed-off-by: Maor Dickman <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Reviewed-by: Vlad Buslov <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 5cd39b6 commit 0e2e7aa

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ static int mlx5e_init_rep_rx(struct mlx5e_priv *priv)
936936

937937
static void mlx5e_cleanup_rep_rx(struct mlx5e_priv *priv)
938938
{
939+
mlx5e_ethtool_cleanup_steering(priv);
939940
rep_vport_rx_rule_destroy(priv);
940941
mlx5e_destroy_rep_root_ft(priv);
941942
mlx5e_destroy_ttc_table(priv, &priv->fs.ttc);

0 commit comments

Comments
 (0)