diff options
author | 2013-10-23 09:53:20 +0300 | |
---|---|---|
committer | 2013-11-08 14:43:00 -0800 | |
commit | 87b8de492da34942fc554f2958a570ce0642296a (patch) | |
tree | 5fe03a23cd2a785eba1a20280354abe5bc8218f2 /include/linux/mlx5 | |
parent | mlx5: Support communicating arbitrary host page size to firmware (diff) | |
download | linux-87b8de492da34942fc554f2958a570ce0642296a.tar.gz linux-87b8de492da34942fc554f2958a570ce0642296a.tar.bz2 linux-87b8de492da34942fc554f2958a570ce0642296a.zip |
mlx5: Clear reserved area in set_hca_cap()
Firmware spec requires reserved fields to be cleared when calling
set_hca_cap. Current code queries and copy to the set area, possibly
resulting in reserved bits not cleared. This patch copies only
writable fields to the set area.
Fix also typo - msx => max
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/device.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 5eb4e31af22b..3d789f43e34b 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -230,6 +230,11 @@ enum { MLX5_MAX_PAGE_SHIFT = 31 }; +enum { + MLX5_CAP_OFF_DCT = 41, + MLX5_CAP_OFF_CMDIF_CSUM = 46, +}; + struct mlx5_inbox_hdr { __be16 opcode; u8 rsvd[4]; @@ -319,9 +324,9 @@ struct mlx5_hca_cap { u8 rsvd25[42]; __be16 log_uar_page_sz; u8 rsvd26[28]; - u8 log_msx_atomic_size_qp; + u8 log_max_atomic_size_qp; u8 rsvd27[2]; - u8 log_msx_atomic_size_dc; + u8 log_max_atomic_size_dc; u8 rsvd28[76]; }; |