diff options
author | Gal Pressman <gal@nvidia.com> | 2022-01-17 15:53:06 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-03-10 23:38:25 -0800 |
commit | fcb610a86c53dfcfbb2aa62e704481112752f367 (patch) | |
tree | e2808d1a98724766557f198a691aacfe7112bbe3 /include/linux/mlx5/mlx5_ifc.h | |
parent | 271907ee2f29cd1078fd219f0778fd824fb1971c (diff) | |
download | linux-stable-fcb610a86c53dfcfbb2aa62e704481112752f367.tar.gz linux-stable-fcb610a86c53dfcfbb2aa62e704481112752f367.tar.bz2 linux-stable-fcb610a86c53dfcfbb2aa62e704481112752f367.zip |
net/mlx5: Parse module mapping using mlx5_ifc
The assumption that the first byte in the module mapping dword is the
module number shouldn't be hard-coded in the driver, but come from
mlx5_ifc structs.
While at it, fix the incorrect width for the 'rx_lane' and 'tx_lane'
fields.
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r-- | include/linux/mlx5/mlx5_ifc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 745107ff681d..91b7f730ed91 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -9888,10 +9888,10 @@ struct mlx5_ifc_pcmr_reg_bits { }; struct mlx5_ifc_lane_2_module_mapping_bits { - u8 reserved_at_0[0x6]; - u8 rx_lane[0x2]; - u8 reserved_at_8[0x6]; - u8 tx_lane[0x2]; + u8 reserved_at_0[0x4]; + u8 rx_lane[0x4]; + u8 reserved_at_8[0x4]; + u8 tx_lane[0x4]; u8 reserved_at_10[0x8]; u8 module[0x8]; }; |