forked from Minki/linux
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>
This commit is contained in:
parent
909ffe462a
commit
794131c408
@ -4463,7 +4463,7 @@ int mlx5e_configure_flower(struct net_device *dev, struct mlx5e_priv *priv,
|
||||
int err = 0;
|
||||
|
||||
if (!mlx5_esw_hold(priv->mdev))
|
||||
return -EAGAIN;
|
||||
return -EBUSY;
|
||||
|
||||
mlx5_esw_get(priv->mdev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user