[ofa-general] Expected behavior

Roland Dreier rdreier at cisco.com
Wed Oct 17 10:10:16 PDT 2007


 > Does the application need to ensure that ibv_poll_cq is never called after
 > the associated qp is destroyed?

No, definitely not, since a CQ may be attached to arbitrarily many
QPs, and clearly you need to be able to poll the CQ even after one of
the QPs is destroyed.

However, you say your app does:

 > 1.       Sets the qp_state to IBV_QPS_ERR
 > 2.       Sleeps for a second
 > 3.       Calls ibv_destroy_qp
 > 4.       Calls ibv_destoy_cq

and if you are destroying a CQ, then you definitely do need to make
sure you don't poll the CQ after calling ibv_destroy_cq.

 - R.



More information about the general mailing list