]> err.no Git - linux-2.6/commit
IB/mlx4: Fix check of max_qp_dest_rdma in modify QP
authorEli Cohen <eli@mellanox.co.il>
Thu, 17 May 2007 13:32:39 +0000 (16:32 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sat, 19 May 2007 15:51:56 +0000 (08:51 -0700)
commit1f8f7b7a7b885a0041a21b3d93c507269baf57c8
treeafa4c7061dc9f4cde6885831d8d9dce604dcd8a0
parentde57c9f102ad7bdc8afa5a1560748cf4f1c18b8e
IB/mlx4: Fix check of max_qp_dest_rdma in modify QP

max_qp_dest_rdma is already in natural units - no need to shift.  This
was discovered by a test that deliberately requests more outstanding
atomic operation than the device supports.

Found by Sagi Rotem at Mellanox.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c