IB/mthca: max_inline_data handling tweaks
authorJack Morgenstein <jackm@mellanox.co.il>
Fri, 6 Jan 2006 20:57:30 +0000 (12:57 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 6 Jan 2006 20:57:30 +0000 (12:57 -0800)
commit5b3bc7a68171138d52b1b62012c37ac888895460
tree63960e2e3f8db5bbe7ef5c9d64e1c5ea3a9124f5
parent466200562ccd80f728f7ef602d2b97b4fdedd566
IB/mthca: max_inline_data handling tweaks

Fix a case where copying max_inline_data from a successful create_qp
capabilities output to create_qp input could cause EINVAL error:

mthca_set_qp_size must check max_inline_data directly against
max_desc_sz; checking qp->sq.max_gs is wrong since max_inline_data
depends on the qp type and does not involve max_sg.

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