]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Keep updating ethtool statistics when the interface is down
authorGal Pressman <galp@mellanox.com>
Tue, 26 Dec 2017 11:44:49 +0000 (13:44 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 12 Jan 2018 00:01:48 +0000 (02:01 +0200)
commitf0278a8b7c02a45563d8af5d0f7755f7184fc701
tree8f38dfdc1a75a2dc6a199afb98fb17173dd05e2a
parentec1e6c1c09cdcb4d769ca353997f6a2c99de7cd2
net/mlx5e: Keep updating ethtool statistics when the interface is down

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: 9df41abb3a64 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c