]> 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)
commit693f4e0350c9148280f6fd0b6a365b9e6b6a180d
treef39b61a5e3ce335995ef42636c8b7c63b32884d4
parent998201e9b08b8260a0afc7335ff117f71d357690
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>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/linux/mlx5/mlx5_ifc.h