]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/cxgb4: Fail RDMA initialization for unsupported cards
authorSteve Wise <swise@opengridcomputing.com>
Mon, 1 Aug 2011 21:59:10 +0000 (16:59 -0500)
committerRoland Dreier <roland@purestorage.com>
Tue, 20 Sep 2011 07:44:35 +0000 (00:44 -0700)
commit7cb1aaab7c8cca80707b7536df6f944352aedfa0
tree14ca6d6f5cbac18631787d935fd38474c4af1f3b
parentfcb8ce5cfe30ca9ca5c9a79cdfe26d1993e65e0c
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