android_kernel_motorola_sm6225/drivers/infiniband/hw
Roland Dreier 12103dca52 IB/mthca: Fix max_sge value returned by query_device
The mthca driver returns the maximum number of scatter/gather entries
returned by the firmware as the max_sge value when device properties
are queried.  However, the firmware also reports a limit on the
maximum descriptor size allowed, and because mthca takes into account
the worst case send request overhead when checking whether to allow a
QP to be created, the largest number of scatter/gather entries that
can be used with mthca may be limited by the maximum descriptor size
rather than just by the actual s/g entry limit.

This means that applications cannot actually create QPs with
max_send_sge equal to the limit returned by ib_query_device().  Fix
this by checking if the maximum descriptor size imposes a lower limit
and if so returning that lower limit.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-05-16 14:58:44 -07:00
..
amso1100 IB: expand ib_umem_get() prototype 2008-04-29 08:06:12 -07:00
cxgb3 RDMA/cxgb3: Fix uninitialized variable warning in iwch_post_send() 2008-05-16 14:58:40 -07:00
ehca IB/ehca: Wait for async events to finish before destroying QP 2008-05-07 11:35:06 -07:00
ipath IB/ipath: Fix UC receive completion opcode for RDMA WRITE with immediate 2008-05-15 16:37:25 -07:00
mlx4 IB/mlx4: Fix uninitialized-var warning in mlx4_ib_post_send() 2008-05-16 14:28:30 -07:00
mthca IB/mthca: Fix max_sge value returned by query_device 2008-05-16 14:58:44 -07:00
nes RDMA/nes: Fix up nes_lro_max_aggr module parameter 2008-05-13 11:27:25 -07:00