]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix mlx5 ifc cmd_hca_cap bad offsets
authorTariq Toukan <tariqt@mellanox.com>
Wed, 13 Apr 2016 16:11:03 +0000 (19:11 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 12 May 2016 18:20:46 +0000 (14:20 -0400)
commitf23dd563ca5b48244251d9c5c8dc13a022bb02f5
treef39b61a5e3ce335995ef42636c8b7c63b32884d4
parent1c4972a46e947b2721463e80b608f8333468b296
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: c8a2f359311d ("net/mlx5_core: Introduce access function to read internal timer ")
Fixes: 22ba570d47d6 ("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>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/linux/mlx5/mlx5_ifc.h