Skip to content

Commit 794131c

Browse files
Jianbo Liukuba-moo
authored andcommitted
net/mlx5: E-Switch, Return EBUSY if can't get mode lock
It is to avoid tc retrying during device mode change. Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Reviewed-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 909ffe4 commit 794131c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4463,7 +4463,7 @@ int mlx5e_configure_flower(struct net_device *dev, struct mlx5e_priv *priv,
44634463
int err = 0;
44644464

44654465
if (!mlx5_esw_hold(priv->mdev))
4466-
return -EAGAIN;
4466+
return -EBUSY;
44674467

44684468
mlx5_esw_get(priv->mdev);
44694469

0 commit comments

Comments
 (0)