]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Add logic to read RS-FEC histogram bin ranges from PPHCR
authorCarolina Jubran <cjubran@nvidia.com>
Wed, 24 Sep 2025 12:40:35 +0000 (12:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Sep 2025 23:49:24 +0000 (16:49 -0700)
commit44907e7c8fd0dec2d17ba8011bb7da443a9e4585
treec01026125aa5dd8d05607d07c5b4aa1ff9a7d94f
parent6b81b8a0b1978284e007566d7a1607b47f92209f
net/mlx5e: Add logic to read RS-FEC histogram bin ranges from PPHCR

Introduce support for querying the Ports Phy Histogram Configuration
Register (PPHCR) to retrieve RS-FEC histogram bin ranges. The ranges
are stored in a static array and will be used to map histogram counters
to error levels.

The actual RS-FEC histogram statistics are not yet reported in this
commit and will be handled in a downstream patch.

Co-developed-by: Yael Chemla <ychemla@nvidia.com>
Signed-off-by: Yael Chemla <ychemla@nvidia.com>
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Yael Chemla <ychemla@nvidia.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Link: https://patch.msgid.link/20250924124037.1508846-4-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h