[PATCH] IB/mthca: max_inline_data handling tweaks
authorJack Morgenstein <jackm@mellanox.co.il>
Mon, 27 Feb 2006 21:44:40 +0000 (13:44 -0800)
committerChris Wright <chrisw@sous-sol.org>
Wed, 1 Mar 2006 22:36:38 +0000 (14:36 -0800)
commitbbcd4f26d39853dd7a158d20eece8c337efe6441
tree03620d3755e78b985d0a80b44871748b8d431f9b
parent93e3d00a9f0158e522cada1088233fad23247882
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/infiniband/hw/mthca/mthca_qp.c