[openib-general] segmentation fault in ibv_modify_srq

Sayantan Sur surs at cse.ohio-state.edu
Sun Oct 9 11:50:31 PDT 2005


Jack,

* On Oct,16 Jack Morgenstein<jackm at mellanox.co.il> wrote :
> Sayantan,
> The Limit Event must be re-armed after an event has occurred (it is a "one-shot").
> (i.e., modify-srq/set-limit must be re-invoked).This is compliant with the 
> IB Spec (see section 10.2.9.3, first paragraph). (Note that after each SRQ LWM
> event, the limit for the SRQ gets reset back to zero -- i.e., disabled).
> 
> Therefore, proper use of this feature is as follows (after creating the SRQ):
>   a. Post the SRQ WQEs
>   b. Arm the Limit to a non-zero value (less than the number of WQEs posted,
> 	or the arming is useless -- you will immediately get the event).
>   c. If the number of posted WQEs falls below your limit, you will get an
> 	event.
>   d. Handling the event:
> 	1) FIRST, post more WQEs to the SRQ to get the number of posted wqe's to be 
> 		greater than your desired limit.
> 	2) THEN, re-arm the event (i.e., modify the SRQ limit again to
> 		be a non-zero value).

Thanks for the detailed instructions. I am able to see the limit event
exactly when the buffer count goes down.

Thanks,
Sayantan.

-- 
http://www.cse.ohio-state.edu/~surs



More information about the general mailing list