[Openib-windows] [PATCH] MTHCA: Don't return WC type of MTHCA_OPCODE_INVALID for send completions

Fab Tillier ftillier at silverstorm.com
Wed Mar 29 07:51:29 PST 2006


Hi Leo,

The default case in the send WC processing sets the WC type to
MTHCA_OPCODE_INVALID, which is beyond the bounds of the wc_type enum.  This
patch changes it so be marked IB_WC_SEND, matching the user-mode code.

- Fab

Index: hw/mthca/kernel/mthca_cq.c
===================================================================
--- hw/mthca/kernel/mthca_cq.c	(revision 257)
+++ hw/mthca/kernel/mthca_cq.c	(working copy)
@@ -551,7 +551,7 @@
 			entry->wc_type    = IB_WC_MW_BIND;
 			break;
 		default:
-			entry->wc_type    = MTHCA_OPCODE_INVALID;
+			entry->wc_type    = IB_WC_SEND;
 			break;
 		}
 	} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mthca_cq.patch
Type: application/octet-stream
Size: 385 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060329/a4124ecd/attachment.obj>


More information about the ofw mailing list