public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC mlx5-next 0/1] net/mlx5e: Expose physical received bits counters to ethtool
@ 2026-01-12  7:03 Kenta Akagi
  2026-01-12  7:03 ` [PATCH RFC mlx5-next 1/1] " Kenta Akagi
  2026-01-13  6:31 ` [PATCH RFC mlx5-next 0/1] " Tariq Toukan
  0 siblings, 2 replies; 6+ messages in thread
From: Kenta Akagi @ 2026-01-12  7:03 UTC (permalink / raw)
  To: Saeed Mahameed, Tariq Toukan, Mark Bloch, Leon Romanovsky,
	Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni
  Cc: netdev, linux-rdma, linux-kernel, Kenta Akagi

Hi,

I would like to measure the cable BER on ConnectX.

According to the documentation[1][2], there are counters that can be used
for this purpose: rx_corrected_bits_phy, rx_pcs_symbol_err_phy and
rx_bits_phy. However, rx_bits_phy does not show up in ethtool
statistics.

This patch exposes the PPCNT phy_received_bits as rx_bits_phy.


On a ConnectX-5 with 25Gbase connection, it works as expected.

On the other hand, although I have not verified it, in an 800Gbps
environment rx_bits_phy would likely overflow after about 124 days.
Since I cannot judge whether this is acceptable, I am posting this as an
RFC first.


[1] commit 8ce3b586faa4 ("net/mlx5: Add counter information to mlx5
    driver documentation")
[2] https://docs.kernel.org/networking/device_drivers/ethernet/mellanox/mlx5/counters.html

Kenta Akagi (1):
  net/mlx5e: Expose physical received bits counters to ethtool

 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-28  7:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12  7:03 [PATCH RFC mlx5-next 0/1] net/mlx5e: Expose physical received bits counters to ethtool Kenta Akagi
2026-01-12  7:03 ` [PATCH RFC mlx5-next 1/1] " Kenta Akagi
2026-01-13  6:31 ` [PATCH RFC mlx5-next 0/1] " Tariq Toukan
2026-01-13  6:43   ` Tariq Toukan
2026-01-13 11:04     ` Kenta Akagi
2026-01-28  7:14       ` Tariq Toukan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox