Skip to content

Commit c829aa0

Browse files
gal-pressmanNipaLocal
authored and
NipaLocal
committed
net/mlx5: Fix MTMP register capability offset in MCAM register
The MTMP register (0x900a) capability offset is off-by-one, move it to the right place. Fixes: 1f507e8 ("net/mlx5: Expose NIC temperature via hardware monitoring kernel API") Signed-off-by: Gal Pressman <[email protected]> Reviewed-by: Cosmin Ratiu <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent a1bed9e commit c829aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/mlx5/mlx5_ifc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10308,9 +10308,9 @@ struct mlx5_ifc_mcam_access_reg_bits {
1030810308
u8 mfrl[0x1];
1030910309
u8 regs_39_to_32[0x8];
1031010310

10311-
u8 regs_31_to_10[0x16];
10311+
u8 regs_31_to_11[0x15];
1031210312
u8 mtmp[0x1];
10313-
u8 regs_8_to_0[0x9];
10313+
u8 regs_9_to_0[0xa];
1031410314
};
1031510315

1031610316
struct mlx5_ifc_mcam_access_reg_bits1 {

0 commit comments

Comments
 (0)