]> Gentwo Git Trees - linux/.git/commit
net/mlx5e: Skip PPHCR register query if not supported by the device
authorAlexei Lazar <alazar@nvidia.com>
Wed, 22 Oct 2025 12:29:40 +0000 (15:29 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Oct 2025 14:14:33 +0000 (07:14 -0700)
commitd58a9a917aa39b10250ec16cb9c24e942cbc77d3
tree24689d8cc5ea92a2831ba7ebb86cb764b456ed0c
parentbb65e0c141f879cdf54db11ae446ee3605fb54d5
net/mlx5e: Skip PPHCR register query if not supported by the device

Check the PCAM supported registers mask before querying the PPHCR
register, as it is not supported in older devices.

Fixes: 44907e7c8fd0 ("net/mlx5e: Add logic to read RS-FEC histogram bin ranges from PPHCR")
Signed-off-by: Alexei Lazar <alazar@nvidia.com>
Reviewed-by: Yael Chemla <ychemla@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1761136182-918470-3-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c