]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/mthca: check RDMA limits
authorJack Morgenstein <jackm@mellanox.co.il>
Sat, 10 Dec 2005 00:32:21 +0000 (16:32 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 10 Dec 2005 00:32:21 +0000 (16:32 -0800)
commit94361cf74a6fca1973d2fed5338d5fb4bcd902fa
tree5b96f7c52f1d1e60d3406a41393922d77abf67b3
parent52d0df153c987e4ad57d15f5df91848f65858e5d
IB/mthca: check RDMA limits

Add limit checking on rd_atomic and dest_rd_atomic attributes:
especially for max_dest_rd_atomic, a value that is larger than HCA
capability can cause RDB overflow and corruption of another QP.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c