RDMA/cma: Override default responder_resources with user value
authorSean Hefty <sean.hefty@intel.com>
Fri, 4 Jan 2008 18:47:12 +0000 (10:47 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:41 +0000 (14:15 -0800)
commit5851bb893e5bb87150817c180ccddcf4e78db1b6
treece0a5e2e7b0888df4379ac3be7e75f505349f5c4
parent1f813ca830f51ed404195750bdba86c41a8050ba
RDMA/cma: Override default responder_resources with user value

By default, the responder_resources parameter is set to that received
in a connection request.  The passive side may override this value
when accepting the connection.  Use the value provided by the passive
side when transitioning the QP to RTR state, rather than the value
given in the connect request.  Without this change, the RTR transition
may fail if the passive side supports fewer responder_resources than
that in the request.

For code consistency and to protect against QP destruction, restructure
overriding initiator_depth to match how responder_resources is set.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c