mlx5: Clear reserved area in set_hca_cap()
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 23 Oct 2013 06:53:20 +0000 (09:53 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:00 +0000 (14:43 -0800)
commit87b8de492da34942fc554f2958a570ce0642296a
tree5fe03a23cd2a785eba1a20280354abe5bc8218f2
parentbf0bf77f6519e5dcd57a77b47e1d151c1e81b7ec
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>
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/device.h