]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx4: Catch FW<->SW misalignment without machine crash
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 May 2018 11:56:13 +0000 (14:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 1 Jun 2018 15:16:23 +0000 (11:16 -0400)
commitb287808c3bcf0a9f23f8ccff651b583a0cfa2428
treecd70134cc5a553a83899d080e3dbb68f0a71d5a6
parentaf92542d9dc4c355ed7caecab5d3d6717bbb3797
RDMA/mlx4: Catch FW<->SW misalignment without machine crash

Any steering QP is supposed be above steering_qp_base,
see function mlx4_ib_steer_qp_alloc() for it, however in case
of misalignment between SW and FW, this qp_base can be wrong.

Use WARN() to catch such situation without killing the machine.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/main.c