]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2997c1a5d2703fff8c0653f65c5021074eef698
treece0a5e2e7b0888df4379ac3be7e75f505349f5c4
parent4e9285d9b6f0b2031d73e8f9ddad179242ab6b1c
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