[openib-general] [PATCH] IB/cm: do not track remote QPN in timewait state

Michael S. Tsirkin mst at mellanox.co.il
Thu Aug 31 06:03:36 PDT 2006


Roland, please queue for 2.6.19.

---

IB/cm: fix spurious rejects with bogus stale connection syndrome.
CM should not track remote QPN in TimeWait, since QP is not connected.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Acked-by: Sean Hefty <sean.hefty at intel.com>

diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index f85c97f..e270311 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -679,6 +679,8 @@ static void cm_enter_timewait(struct cm_
 {
 	int wait_time;
 
+	cm_cleanup_timewait(cm_id_priv->timewait_info);
+
 	/*
 	 * The cm_id could be destroyed by the user before we exit timewait.
 	 * To protect against this, we search for the cm_id after exiting


-- 
MST




More information about the general mailing list