]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: Fix PPLM register mapping
authorAya Levin <ayal@nvidia.com>
Sun, 4 Apr 2021 07:50:50 +0000 (10:50 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:04:35 +0000 (21:04 -0700)
Add reserved mapping to cover all the register in order to avoid
setting arbitrary values to newer FW which implements the reserved
fields.

Fixes: a58837f52d43 ("net/mlx5e: Expose FEC feilds and related capability bit")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
include/linux/mlx5/mlx5_ifc.h

index 1ccedb7816d0d5b9660741b4b87b76c779522e3a..9940070cda8ffeb2a9d542c14029905409091af5 100644 (file)
@@ -8835,6 +8835,8 @@ struct mlx5_ifc_pplm_reg_bits {
 
        u8         fec_override_admin_100g_2x[0x10];
        u8         fec_override_admin_50g_1x[0x10];
+
+       u8         reserved_at_140[0x140];
 };
 
 struct mlx5_ifc_ppcnt_reg_bits {