[ofw] [PATCH 3/7] ucm: record and silently drop a duplicate reject CM message

Davis, Arlin R arlin.r.davis at intel.com
Thu Jul 5 09:38:18 PDT 2012


Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_ucm/cm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dapl/openib_ucm/cm.c b/dapl/openib_ucm/cm.c
index 357dbf7..4e6c527 100644
--- a/dapl/openib_ucm/cm.c
+++ b/dapl/openib_ucm/cm.c
@@ -415,6 +415,12 @@ static void ucm_process_recv(ib_hca_transport_t *tp,
 		}
 		dapl_os_unlock(&cm->lock);
 		break;
+	case DCM_REJECTED:
+		if (ntohs(msg->op) == DCM_REJ_USER) {
+			DAPL_CNTR(((DAPL_IA *)dapl_llist_peek_head(&cm->hca->ia_list_head)), DCNT_IA_CM_USER_REJ_RX);
+			dapl_os_unlock(&cm->lock);
+			break;
+		}
 	default:
 		dapl_log(DAPL_DBG_TYPE_WARN,
 			" ucm_recv: Warning, UNKNOWN state"
-- 
1.7.3





More information about the ofw mailing list