IB/ehca: Prevent RDMA-related connection failures on some eHCA2 hardware
authorJoachim Fenkes <fenkes@de.ibm.com>
Thu, 17 Jan 2008 14:07:24 +0000 (15:07 +0100)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:44 +0000 (14:15 -0800)
commit2ec8e662416cc9a171cdfe3d75e1ff00ba757859
treedbc881205c3177db9a7816385b4fdda762bdb04c
parentbbdd267ef2796e96b461b8447b2026ce06e6ec4b
IB/ehca: Prevent RDMA-related connection failures on some eHCA2 hardware

Some HW revisions of eHCA2 may cause an RC connection to break if they
received RDMA Reads over that connection before.  This can be
prevented by assuring that, after the first RDMA Read, the QP receives
a new RDMA Read every few million link packets.

Include code into the driver that inserts an empty (size 0) RDMA Read
into the message stream every now and then if the consumer doesn't
post them frequently enough.

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