[Openib-windows] RE: [PATCH] MTHCA: Don't return WC type of MTHCA_OPCODE_INVALID for send completions
Leonid Keller
leonid at mellanox.co.il
Wed Mar 29 10:42:34 PST 2006
Applied, thanx
> -----Original Message-----
> From: Fab Tillier [mailto:ftillier at silverstorm.com]
> Sent: Wednesday, March 29, 2006 5:51 PM
> To: Leonid Keller
> Cc: openib-windows at openib.org
> Subject: [PATCH] MTHCA: Don't return WC type of
> MTHCA_OPCODE_INVALID for send completions
>
> 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 {
>
More information about the ofw
mailing list