]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
librdmacm: report timewait exit event
authorSean Hefty <sean.hefty@intel.com>
Thu, 3 Jul 2008 15:27:15 +0000 (08:27 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 3 Jul 2008 15:27:15 +0000 (08:27 -0700)
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
include/rdma/rdma_cma.h
man/rdma_get_cm_event.3
src/cma.c

index a516ab85c114cb9621c4617775f64316a8c7926e..534489d8f5d7f19fc988852db925fd812eecd08a 100644 (file)
@@ -62,7 +62,8 @@ enum rdma_cm_event_type {
        RDMA_CM_EVENT_DEVICE_REMOVAL,
        RDMA_CM_EVENT_MULTICAST_JOIN,
        RDMA_CM_EVENT_MULTICAST_ERROR,
-       RDMA_CM_EVENT_ADDR_CHANGE
+       RDMA_CM_EVENT_ADDR_CHANGE,
+       RDMA_CM_EVENT_TIMEWAIT_EXIT
 };
 
 enum rdma_port_space {
index 3537e558dd5548be77b90e5d5d0e07d9815d9c8b..79bf606c5dafcde6cd0d074ba33d31b85a29b111 100644 (file)
@@ -140,11 +140,16 @@ The multicast join operation (rdma_join_multicast) completed successfully.
 An error either occurred joining a multicast group, or, if the group had
 already been joined, on an existing group.  The specified multicast group is
 no longer accessible and should be rejoined, if desired.
-.IP RDMA_CM_EVENT_ADDR_CHANGE_
-The network device associated with this ID through address resolution changed its
-HW address, eg following of bonding failover. This event can serve as a hint for
-applications who want the links used for their RDMA sessions to align with the
-network stack.
+.IP RDMA_CM_EVENT_ADDR_CHANGE
+The network device associated with this ID through address resolution changed
+its HW address, eg following of bonding failover. This event can serve as a
+hint for applications who want the links used for their RDMA sessions to
+align with the network stack.
+.IP RDMA_CM_EVENT_TIMEWAIT_EXIT
+The QP associated with a connection has exited its timewait state and is now
+ready to be re-used.  After a QP has been disconnected, it is maintained in
+a timewait state to allow any in flight packets to exit the network.  After
+the timewait state has completed, the rdma_cm will report this event.
 .SH "SEE ALSO"
 rdma_ack_cm_event(3), rdma_create_event_channel(3), rdma_resolve_addr(3),
 rdma_resolve_route(3), rdma_connect(3), rdma_listen(3), rdma_join_multicast(3),
index ecb41bca630f615a3bed069e7a7288d8d8da21f5..d4441cebf54dd24009c2323217e8b5e09ce1cad0 100644 (file)
--- a/src/cma.c
+++ b/src/cma.c
@@ -1440,6 +1440,8 @@ const char *rdma_event_str(enum rdma_cm_event_type event)
                return "RDMA_CM_EVENT_MULTICAST_ERROR";
        case RDMA_CM_EVENT_ADDR_CHANGE:
                return "RDMA_CM_EVENT_ADDR_CHANGE";
+       case RDMA_CM_EVENT_TIMEWAIT_EXIT:
+               return "RDMA_CM_EVENT_TIMEWAIT_EXIT";
        default:
                return "UNKNOWN EVENT";
        }