Revert "net/mlx5e: Correctly report errors for ethtool rx flows"

This reverts commit a1624526b7.
This commit is contained in:
Ksawlii 2024-11-24 00:23:54 +01:00
parent 11596bfd09
commit 0b80835234

View file

@ -679,7 +679,7 @@ mlx5e_ethtool_flow_replace(struct mlx5e_priv *priv,
if (num_tuples <= 0) {
netdev_warn(priv->netdev, "%s: flow is not valid %d\n",
__func__, num_tuples);
return num_tuples < 0 ? num_tuples : -EINVAL;
return num_tuples;
}
eth_ft = get_flow_table(priv, fs, num_tuples);