]> git.openfabrics.org - ~ardavis/dapl.git/commit
ibal: delay QP transition during disconnect phase
authorArlin Davis <arlin.r.davis@intel.com>
Wed, 22 Sep 2010 17:35:24 +0000 (10:35 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Wed, 22 Sep 2010 17:35:24 +0000 (10:35 -0700)
commit4eda455d9bc80c35743b3a2f6773e6c4a500affc
treeaa675b278c4f2ae02fa1735a17eb2f4d1c9b7bb9
parent6fefe33f9e691d4527a6e077ae1fe71bf138a41c
ibal: delay QP transition during disconnect phase

The ibal provider calls ib_cm_drep in response to receiving
a dreq.  The result is that the user's QP is transitioned
through the error state, which fails any outstanding send
operations and flushes all receives.  The disconnect request
is then reported to the user.

Since a user can receive errors from the QP before they are
aware of a pending disconnect request, the application may
respond to the errors as, well, actual errors.  Fix this by
delaying the QP transition until the user responds to the
dreq.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
---
dapl/ibal/dapl_ibal_cm.c
dapl/include/dapl.h