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

Roland Dreier roland at topspin.com
Tue Oct 26 09:14:03 PDT 2004


 		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?

 - R.



More information about the general mailing list