[ofa-general] Event for active/passive connection

Ying Cai ycai at Brocade.COM
Mon Jul 30 15:25:44 PDT 2007


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

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070730/8fe1cb32/attachment.html>


More information about the general mailing list