aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/rdma_cm.h
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2006-11-30 19:37:15 -0500
committerRoland Dreier <rolandd@cisco.com>2006-12-12 14:50:21 -0500
commit0fe313b000b6a699afbbb59ef9c47a2b22146f1e (patch)
treed3a9a066218cdd07caa13b6b646e0fe140e4901d /include/rdma/rdma_cm.h
parenta1b1b61f80aba49f1e0f32b0e4b1c35be91c57fa (diff)
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 'include/rdma/rdma_cm.h')
-rw-r--r--include/rdma/rdma_cm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h
index aa6ce47537a2..6b8ec486d06b 100644
--- a/include/rdma/rdma_cm.h
+++ b/include/rdma/rdma_cm.h
@@ -253,6 +253,21 @@ int rdma_listen(struct rdma_cm_id *id, int backlog);
253int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param); 253int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);
254 254
255/** 255/**
256 * rdma_notify - Notifies the RDMA CM of an asynchronous event that has
257 * occurred on the connection.
258 * @id: Connection identifier to transition to established.
259 * @event: Asynchronous event.
260 *
261 * This routine should be invoked by users to notify the CM of relevant
262 * communication events. Events that should be reported to the CM and
263 * when to report them are:
264 *
265 * IB_EVENT_COMM_EST - Used when a message is received on a connected
266 * QP before an RTU has been received.
267 */
268int rdma_notify(struct rdma_cm_id *id, enum ib_event_type event);
269
270/**
256 * rdma_reject - Called to reject a connection request or response. 271 * rdma_reject - Called to reject a connection request or response.
257 */ 272 */
258int rdma_reject(struct rdma_cm_id *id, const void *private_data, 273int rdma_reject(struct rdma_cm_id *id, const void *private_data,