\r
p_rej = (mad_cm_rej_t*)p_mad->p_mad_buf;\r
\r
+ AL_PRINT( TRACE_LEVEL_INFORMATION, AL_DBG_CM,\r
+ ("Request rejected reason - %d.\n", p_rej->reason) );\r
+\r
switch( p_cep->state )\r
{\r
case CEP_STATE_REQ_SENT:\r
/*\r
* Ignore rejects with the status set to IB_REJ_INVALID_SID. We will\r
* continue to retry (up to max_cm_retries) to connect to the remote\r
- * side. This is required to support peer-to-peer connections and\r
- * clients that try to connect before the server comes up.\r
+ * side. This is required to support peer-to-peer connections.\r
*/\r
- if( p_rej->reason == IB_REJ_INVALID_SID )\r
+ if( p_cep->p2p && p_rej->reason == IB_REJ_INVALID_SID )\r
{\r
AL_PRINT( TRACE_LEVEL_INFORMATION, AL_DBG_CM,\r
("Request rejected (invalid SID) - retrying.\n") );\r