Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-29 14:10:35 +0100
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-29 14:10:35 +0100
commit04da744f0e08440046d45557696649de6cd03d29 (patch)
tree2e45d4ce022541358d7989872413eaa29c75d29e
parente660854f4836dc845691ed3b8ed4205d0201387f (diff)
net/mlx5e: Keep updating ethtool statistics when the interface
is down (bsc#1046303 FATE#322944). suse-commit: 4075ba4952dbfeaaf650d8b5ab45a97a0c07342c
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
index 905b4bc1b019..e5dc7bd73c57 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
@@ -349,8 +349,7 @@ void mlx5e_ethtool_get_ethtool_stats(struct mlx5e_priv *priv,
return;
mutex_lock(&priv->state_lock);
- if (test_bit(MLX5E_STATE_OPENED, &priv->state))
- mlx5e_update_stats(priv, true);
+ mlx5e_update_stats(priv, true);
channels = &priv->channels;
mutex_unlock(&priv->state_lock);