net/mlx5e: Directly get flow_steering struct as input when init/cleanup ethtool steering
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / en_rep.c
index 8ef4ad0a6ce9025bc5375f55978b97624cb7a57e..a6b54adb377ab1f9ade1c5b4bbb09ce55f69e34e 100644 (file)
@@ -886,7 +886,7 @@ static int mlx5e_init_rep_rx(struct mlx5e_priv *priv)
        if (err)
                goto err_destroy_root_ft;
 
-       mlx5e_ethtool_init_steering(priv);
+       mlx5e_ethtool_init_steering(priv->fs);
 
        return 0;
 
@@ -907,7 +907,7 @@ err_free_fs:
 
 static void mlx5e_cleanup_rep_rx(struct mlx5e_priv *priv)
 {
-       mlx5e_ethtool_cleanup_steering(priv);
+       mlx5e_ethtool_cleanup_steering(priv->fs);
        rep_vport_rx_rule_destroy(priv);
        mlx5e_destroy_rep_root_ft(priv);
        mlx5_destroy_ttc_table(mlx5e_fs_get_ttc(priv->fs, false));