aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorEli Cohen <eli@dev.mellanox.co.il>2013-10-23 02:53:20 -0400
committerRoland Dreier <roland@purestorage.com>2013-11-08 17:43:00 -0500
commit87b8de492da34942fc554f2958a570ce0642296a (patch)
tree5fe03a23cd2a785eba1a20280354abe5bc8218f2 /include/linux
parentbf0bf77f6519e5dcd57a77b47e1d151c1e81b7ec (diff)
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')
-rw-r--r--include/linux/mlx5/device.h9
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 {
230 MLX5_MAX_PAGE_SHIFT = 31 230 MLX5_MAX_PAGE_SHIFT = 31
231}; 231};
232 232
233enum {
234 MLX5_CAP_OFF_DCT = 41,
235 MLX5_CAP_OFF_CMDIF_CSUM = 46,
236};
237
233struct mlx5_inbox_hdr { 238struct mlx5_inbox_hdr {
234 __be16 opcode; 239 __be16 opcode;
235 u8 rsvd[4]; 240 u8 rsvd[4];
@@ -319,9 +324,9 @@ struct mlx5_hca_cap {
319 u8 rsvd25[42]; 324 u8 rsvd25[42];
320 __be16 log_uar_page_sz; 325 __be16 log_uar_page_sz;
321 u8 rsvd26[28]; 326 u8 rsvd26[28];
322 u8 log_msx_atomic_size_qp; 327 u8 log_max_atomic_size_qp;
323 u8 rsvd27[2]; 328 u8 rsvd27[2];
324 u8 log_msx_atomic_size_dc; 329 u8 log_max_atomic_size_dc;
325 u8 rsvd28[76]; 330 u8 rsvd28[76];
326}; 331};
327 332