Skip to content

Commit

Permalink
net/mlx5: Fix PPLM register mapping
Browse files Browse the repository at this point in the history
Add reserved mapping to cover all the register in order to avoid
setting arbitrary values to newer FW which implements the reserved
fields.

Fixes: a58837f ("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>
  • Loading branch information
Aya Levin authored and Saeed Mahameed committed Apr 7, 2021
1 parent a14587d commit ce28f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/mlx5/mlx5_ifc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ce28f0f

Please sign in to comment.