]> err.no Git - linux-2.6/commit
IB/mlx4: Handle buffer wraparound in __mlx4_ib_cq_clean()
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 18 Jun 2007 15:13:59 +0000 (08:13 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 18 Jun 2007 15:13:59 +0000 (08:13 -0700)
commit082dee3216c99a838af40be403799f60bcea2e97
tree4741bc693e9eb882e5c72ab2d206cbe63e9dafaa
parent54e95f8dcbd7d86f79b423e8d11053ec9a2d9946
IB/mlx4: Handle buffer wraparound in __mlx4_ib_cq_clean()

When compacting CQ entries, we need to set the correct value of the
ownership bit in case the value is different between the index we copy
the CQE from and the index we copy it to.

Found by Ronni Zimmerman of Mellanox.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/cq.c