]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix mlx5 ifc cmd_hca_cap bad offsets
authorTariq Toukan <tariqt@mellanox.com>
Mon, 11 Apr 2016 20:10:21 +0000 (23:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 21:21:09 +0000 (17:21 -0400)
commitf7107cb2dc2d2736a048c1a4f751d0e5590149b9
tree7f60805579fccbb80178f7c3140ce950586cc1ac
parent0f83f8bbdff5421b46de0083cf2507956bcb4f0f
net/mlx5: Fix mlx5 ifc cmd_hca_cap bad offsets

All reserved fields after early_vf_enable are off by 1, since
early_vf_enable was not explicitly declared as array of size 1.

Reserved field before cqe_zip had a wrong size, it should
be 0x80 + 0x3f.

Fixes: c4c26488e644 ("net/mlx5_core: Introduce access function to read internal timer ")
Fixes: b4b128e6b9fa ("net/mlx5: Use offset based reserved field names in the IFC header file")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mlx5/mlx5_ifc.h