net/mlx5e: Report rx_discards_phy via rx_dropped
Subsystems (5)
PATCH v4 1/1 net/mlx5e: Report rx_discards_phy via rx_dropped
We noticed a high number of rx_discards_phy events on certain servers while running ethtool -S. However, this critical counter is not currently included in the standard /proc/net/dev statistics file, making it difficult to monitor effectively—especially given the diversity of vendors across a large fleet of servers.
Let's report it via the standard rx_dropped metric.
--- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +1 -0
@@ -3916,6 +3916,7 @@ mlx5e_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats) } stats->rx_missed_errors = priv->stats.qcnt.rx_out_of_buffer; + stats->rx_dropped =PPORT_2863_GET (pstats, if_in_discards); stats->rx_length_errors = PPORT_802_3_GET(pstats, a_in_range_length_errors) +
Signature · 1 line
2.43.5
Quoted 10 lines · Yafang Shao
We noticed a high number of
rx_discards_phyevents on certain servers while runningethtool -S. However, this critical counter is not currently included in the standard/proc/net/devstatistics file, making it difficult to monitor effectively—especially given the diversity of vendors across a large fleet of servers.Let's report it via the standard
rx_droppedmetric.Suggested-by Jakub Kicinski <[email protected]>Signed-off-by Yafang Shao <[email protected]>
Jakub Kicinski
maintainerQuoted 7 lines · On Tue, 10 Dec 2024 10:27:06 +0800 Yafang Shao wrote:
We noticed a high number of
rx_discards_phyevents on certain servers while runningethtool -S. However, this critical counter is not currently included in the standard/proc/net/devstatistics file, making it difficult to monitor effectively—especially given the diversity of vendors across a large fleet of servers.Let's report it via the standard
rx_droppedmetric.
nVidia folks, could you review? Or you're just taking it via your tree and it will reappear on the list soon? I want to make sure there is no off-list discussion with the author that leads to the patch being "lost"...
Tariq Toukan
Reviewed-byQuoted 9 lines · Jakub Kicinski
Quoted 7 lines · On Tue, 10 Dec 2024 10:27:06 +0800 Yafang Shao wrote:
We noticed a high number of
rx_discards_phyevents on certain servers while runningethtool -S. However, this critical counter is not currently included in the standard/proc/net/devstatistics file, making it difficult to monitor effectively—especially given the diversity of vendors across a large fleet of servers.Let's report it via the standard
rx_droppedmetric.
Quoted 2 lines
nVidia folks, could you review? Or you're just taking it via your tree and it will reappear on the list soon?
Please take it.
We do not work anymore with our own netdev tree.
We still work with the mlx5-next tree for patches that should be "shared" with non-netdev trees, mainly IFC changes.
Quoted 3 lines
I want to make sure there is no
off-list discussion with the author that leads to the patch being "lost"...
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Tue, 10 Dec 2024 10:27:06 +0800 you wrote:
We noticed a high number of
rx_discards_phyevents on certain servers while runningethtool -S. However, this critical counter is not currently included in the standard/proc/net/devstatistics file, making it difficult to monitor effectively—especially given the diversity of vendors across a large fleet of servers.Let's report it via the standard
rx_droppedmetric.[...]
Here is the summary with links:
- [v4,net-next] net/mlx5e: Report rx_discards_phy via rx_dropped
https://git.kernel.org/netdev/net-next/c/c9cfced17365
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html