diff options
author | Sean Hefty <sean.hefty@intel.com> | 2006-12-01 00:37:15 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-12-12 19:50:21 (GMT) |
commit | 0fe313b000b6a699afbbb59ef9c47a2b22146f1e (patch) | |
tree | d3a9a066218cdd07caa13b6b646e0fe140e4901d /drivers/infiniband/core/cm.c | |
parent | a1b1b61f80aba49f1e0f32b0e4b1c35be91c57fa (diff) | |
download | linux-fsl-qoriq-0fe313b000b6a699afbbb59ef9c47a2b22146f1e.tar.xz |
RDMA/cma: Allow early transition to RTS to handle lost CM messages
During connection establishment, the passive side of a connection can
receive messages from the active side before the connection event has
been delivered to the user. Allow the passive side to send messages
in response to received data before the event is delivered. To handle
the case where the connection messages are lost, a new rdma_notify()
function is added that users may invoke to force a connection into the
established state.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r-- | drivers/infiniband/core/cm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index 79c937b..d446998 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -3289,6 +3289,10 @@ static int cm_init_qp_rts_attr(struct cm_id_private *cm_id_priv, spin_lock_irqsave(&cm_id_priv->lock, flags); switch (cm_id_priv->id.state) { + /* Allow transition to RTS before sending REP */ + case IB_CM_REQ_RCVD: + case IB_CM_MRA_REQ_SENT: + case IB_CM_REP_RCVD: case IB_CM_MRA_REP_SENT: case IB_CM_REP_SENT: |