]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Don't query FEC statistics when FEC is disabled
authorCarolina Jubran <cjubran@nvidia.com>
Wed, 24 Sep 2025 12:40:34 +0000 (12:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Sep 2025 23:49:20 +0000 (16:49 -0700)
commit6b81b8a0b1978284e007566d7a1607b47f92209f
treecb6b1014b10c94049db689a56365a4a4ba2b8126
parentcc2f08129925b437bf28f7f7822f20dac083a87c
net/mlx5e: Don't query FEC statistics when FEC is disabled

Update mlx5e_stats_fec_get() to check the active FEC mode and skip
statistics collection when FEC is disabled.

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