[openib-general] Re: CMA disconnect

Sean Hefty mshefty at ichips.intel.com
Mon May 8 09:58:15 PDT 2006


Or Gerlitz wrote:
> Looking in the code i have realized that it is a must for the CMA 
> consumer to call rdma_disconnect to have the QP state moved into ERROR.

Maybe it would make sense for the CMA to transition the QP to the error state 
before destroying it?

> Am i correct? with this understanding at hand, i have changed iSER code to 
> call rdma_disconnect even if it got a DISCONNECTED event caused by the 
> passive side initiating the disconnect flow (ie sending a DREQ), since 
> otherwise in such case i never got the FLUSHES on the posted RX/TX WRs.

You are correct, rdma_disconnect() is required to transition the QP into the 
error state.  The code is written such that both sides call it.

- Sean



More information about the general mailing list