[ofa-general] Event for active/passive connection

Steve Wise swise at opengridcomputing.com
Mon Jul 30 16:15:48 PDT 2007


I've never tested SDP over iWARP...


Ying Cai wrote:
> Hi,
> 
>  
> 
> After reading the OFED 1.2 code, I have a question.
> 
>  
> 
> In cma_iw_handler():
> 
>  
> 
> case IW_CM_EVENT_CONNECT_REPLY:
> 
>> 
>                         switch (iw_event->status) {
> 
>                         case 0:
> 
>                                     event.event = RDMA_CM_EVENT_ESTABLISHED;
> 
>                                     break;
> 
>> 
>                         }
> 
>                         break;
> 
>             case IW_CM_EVENT_ESTABLISHED:
> 
>                         event.event = RDMA_CM_EVENT_ESTABLISHED;
> 
>                         break;
> 
>  
> 
> It could cause a problem in SDP, since in SDP RDMA_CM_EVENT_ESTABLISHED 
> is handled by sdp_connected_handler(), which can only handle passive 
> connection case (it assumes the socket has parent, which is only true 
> for listening sockets). Is the SDP over iWarp case tested, or did I miss 
> something?
> 
>  
> 
> Seems the correct event for SDP should be RDMA_CM_EVENT_CONNECT_RESPONSE.
> 
>  
> 
> Thanks,
> 
> -Ying
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list