IB/ehca: SRQ fixes to enable IPoIB CM
authorJoachim Fenkes <fenkes@de.ibm.com>
Fri, 31 Aug 2007 14:03:37 +0000 (16:03 +0200)
committerRoland Dreier <rolandd@cisco.com>
Fri, 31 Aug 2007 20:58:04 +0000 (13:58 -0700)
commit5ff70cac3e98af64f9a1eaec9e762ff4927c26d1
tree4a0b840f6cef113b175bfe63c75c0420611fca82
parentfecea0ab3415bfab9a1964690e53b10c5d8f2e46
IB/ehca: SRQ fixes to enable IPoIB CM

Fix ehca SRQ support so that IPoIB connected mode works:

 - Report max_srq > 0 if SRQ is supported
 - Report "last wqe reached" asynchronous event when base QP dies;
   this is required by the IB spec and IPoIB CM relies on receiving it
   when cleaning up.

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_hca.c
drivers/infiniband/hw/ehca/ehca_irq.c