]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/mthca: Check that SRQ WQE size does not exceed device's max value
authorJack Morgenstein <jackm@mellanox.co.il>
Mon, 20 Mar 2006 10:35:34 +0000 (12:35 +0200)
committerRoland Dreier <rolandd@cisco.com>
Fri, 24 Mar 2006 23:47:27 +0000 (15:47 -0800)
commitded9ad721d220d47989177076a181ae1f1b93af5
tree4cd58fe6bccaaa133fbba3f22729dda3e6cb213f
parent0ef61db837c93d4377fabd37182bb6f83ea5ca70
IB/mthca: Check that SRQ WQE size does not exceed device's max value

Guarantee the calculated work queue entry size does not exceed the max
allowable WQE size when creating an SRQ.  This is a problem with Arbel
in Tavor-compatibility mode because the current WQE size computation
method rounds up to next power of 2.

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