]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix endless loop in resize CQ
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 31 Oct 2013 13:26:35 +0000 (15:26 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 15 Nov 2013 18:24:17 +0000 (10:24 -0800)
commit0e231cb2d54c31e2991ec3c5084bcf00a0efa6ab
treec8cb81c349cb9740b358b9670ecbe5fb8904aa35
parent0e7fb4bc05a12a48fc03da20d018ff3786b7d5dc
IB/mlx4: Fix endless loop in resize CQ

When calling get_sw_cqe() we need pass the consumer_index and not the
masked value. Failure to do so will cause incorrect result of
get_sw_cqe() possibly leading to endless loop.

This problem was reported and analyzed by Michael Rice from HP.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/cq.c