[openib-general] [PATCH] ib_mad: In completion handler, when status != success call send done handler
Sean Hefty
mshefty at ichips.intel.com
Tue Oct 26 09:30:00 PDT 2004
On Tue, 26 Oct 2004 09:14:03 -0700
Roland Dreier <roland at topspin.com> wrote:
> if (wc.status != IB_WC_SUCCESS) {
> printk(KERN_ERR PFX "Completion error %d WRID 0x%Lx\n",
> wc.status, (unsigned long long)
> wc.wr_id);
> + ib_mad_send_done_handler(port_priv, &wc);
> } else {
>
> I think this is still not quite right: what if a receive fails?
As a suggestion, we can allocate 2 CQs per QP, one for receives, and one for sends. This would let us separate send from receive completions based on the callback.
More information about the general
mailing list