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
commit4075ba4952dbfeaaf650d8b5ab45a97a0c07342c (patch)
treee83e766fdc38d03a971df5f6911575ff80ac61bd
parentc5e8efbf216c3f4c534853adc4dcbfa5a7e4eedd (diff)
net/mlx5e: Keep updating ethtool statistics when the interface
is down (bsc#1046303 FATE#322944).
-rw-r--r--patches.drivers/net-mlx5e-Keep-updating-ethtool-statistics-when-the-.patch35
-rw-r--r--series.conf1
2 files changed, 36 insertions, 0 deletions
diff --git a/patches.drivers/net-mlx5e-Keep-updating-ethtool-statistics-when-the-.patch b/patches.drivers/net-mlx5e-Keep-updating-ethtool-statistics-when-the-.patch
new file mode 100644
index 0000000000..794f14b5a0
--- /dev/null
+++ b/patches.drivers/net-mlx5e-Keep-updating-ethtool-statistics-when-the-.patch
@@ -0,0 +1,35 @@
+From: Gal Pressman <galp@mellanox.com>
+Date: Tue, 26 Dec 2017 13:44:49 +0200
+Subject: net/mlx5e: Keep updating ethtool statistics when the interface is
+ down
+Patch-mainline: v4.15-rc9
+Git-commit: e556f6dd47eda62cbb046fa92e03265245a1537f
+References: bsc#1046303 FATE#322944
+
+ethtool statistics should be updated even when the interface is down
+since it shows more than just netdev counters, which might change while
+the logical link is down.
+One useful use case, for example, is when running RoCE traffic over the
+interface (while the logical link is down, but physical link is up) and
+examining rx_prioX_bytes.
+
+Fixes: f62b8bb8f2d3 ("net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality")
+Signed-off-by: Gal Pressman <galp@mellanox.com>
+Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
+Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
+---
+ drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- 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(str
+ 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);
+
diff --git a/series.conf b/series.conf
index e5de36f308..5ca51d91bc 100644
--- a/series.conf
+++ b/series.conf
@@ -6665,6 +6665,7 @@
patches.drivers/net-mlx5-Fix-memory-leak-in-bad-flow-of-mlx5_alloc_i.patch
patches.drivers/net-mlx5-Fix-mlx5_get_uars_page-to-return-error-code.patch
patches.drivers/net-mlx5-Fix-error-handling-in-load-one.patch
+ patches.drivers/net-mlx5e-Keep-updating-ethtool-statistics-when-the-.patch
patches.drivers/net-mlx5e-Don-t-override-netdev-features-field-unles.patch
patches.suse/bpf-array-fix-overflow-in-max_entries-and-undefined-.patch
patches.drivers/ibmvnic-Fix-pending-MAC-address-changes.patch