]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
RDMA/cxgb3: Set the max_qp_init_rd_atom attribute in query_device
authorSteve Wise <swise@opengridcomputing.com>
Fri, 9 Nov 2007 15:21:58 +0000 (09:21 -0600)
committerRoland Dreier <rolandd@cisco.com>
Tue, 13 Nov 2007 23:27:00 +0000 (15:27 -0800)
commit9a7666494bac60b99d2bd7d904bd22e8c9b1e3f7
treea224be9961ef75b43f67d78975df7301bd010a10
parent51aaa54eb9e9f01878aa5d62277fd156e458dfe1
RDMA/cxgb3: Set the max_qp_init_rd_atom attribute in query_device

The device attribute max_qp_init_rd_atom is not getting set in cxgb3's
query_device method.  Version 1.0.4 of librdmacm now validates the
user's requested initiator and responder resources against the max
supported by the device.  Since iw_cxgb3 wasn't setting this attribute
(and it defaulted to 0), all rdma_connect()s fail if there are
initiator resources requested by the app.  Fix this by setting the
correct value in iwch_query_device().

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_provider.c