RDMA/cxgb4: Fail RDMA initialization for unsupported cards
authorSteve Wise <swise@opengridcomputing.com>
Thu, 6 Oct 2011 16:32:44 +0000 (09:32 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 6 Oct 2011 16:32:44 +0000 (09:32 -0700)
commit9efe10a1e1a1ab1dba0af0f520e0697f6e81ebf1
tree1c5d3c84ee7cdb3c0d668ce5ce77217242c078bc
parent976d167615b64e14bc1491ca51d424e2ba9a5e84
RDMA/cxgb4: Fail RDMA initialization for unsupported cards

The iw_cxgb4 module crashes at init time if the T4 card does not
support RDMA.  So clean up the init logic to correctly deal with
non-RDMA cards.

 - If any RDMA resources are not available, then fail the initialization
   logging an info message.
 - Clean up properly on initialization failures.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/device.c