Skip to content

Commit

Permalink
net/mlx5: Fix size field in bufferx_reg struct
Browse files Browse the repository at this point in the history
[ Upstream commit ac77998 ]

According to HW spec the field "size" should be 16 bits
in bufferx register.

Fixes: e281682 ("net/mlx5_core: HW data structs/types definitions cleanup")
Signed-off-by: Mohammad Kabat <mohammadkab@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
mohammadkab authored and Sasha Levin committed Mar 12, 2022
1 parent 7b4f040 commit bd42c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/mlx5/mlx5_ifc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7953,8 +7953,8 @@ struct mlx5_ifc_bufferx_reg_bits {
u8 reserved_at_0[0x6];
u8 lossy[0x1];
u8 epsb[0x1];
u8 reserved_at_8[0xc];
u8 size[0xc];
u8 reserved_at_8[0x8];
u8 size[0x10];

u8 xoff_threshold[0x10];
u8 xon_threshold[0x10];
Expand Down

0 comments on commit bd42c00

Please sign in to comment.