[openib-general] [PATCH] ib_mad: In completion handler, when status != success call send done handler

Michael S. Tsirkin mst at mellanox.co.il
Tue Oct 26 10:16:28 PDT 2004


Hello!
Quoting r. Roland Dreier (roland at topspin.com) "Re: [openib-general] [PATCH] ib_mad: In completion handler, when status != success call?send done handler":
>     Sean> As a suggestion, we can allocate 2 CQs per QP, one for
>     Sean> receives, and one for sends.  This would let us separate
>     Sean> send from receive completions based on the callback.
> 
> That's one solution, and another way to handle it is to have a way of
> distinguishing sends from receives based on wr_id (that's what the
> Topspin stack does).
> 
> Not sure which is better really.
> 
>  - Roland

If you have 2 CQs you could have separate threads handing sends and
receives, waking up only the relevant one.

MST



More information about the general mailing list