Thread (1 message) 1 message, 1 author, 2011-03-09

Re: [PATCH/libmlx] Set the ibv_wc.opcode even if the wc is an error wc

From: Jason Gunthorpe <hidden>
Date: 2011-03-09 07:04:41

On Wed, Mar 09, 2011 at 08:28:31AM +0200, Or Gerlitz wrote:
On 3/9/2011 6:26 AM, Jason Gunthorpe wrote:
quoted
Roland: I don't have a PRM to check if this is correct for the chip, but
it is definately in line with what the IBA expects to happen here.
Hi Jason, I've been taught that by IBTA if the completion isn't
successful then the only valid WC field is the opcode, isn't that
correct?
Did you mean wr_id not opcode?

I'd say that 11.4.2.1 supports the view that wr_id and status are the
only valid fields. However, the whole error handling architecture that
the WC's fit into is based around the idea that you can go from an
error WC back to the RQ/SQ that caused the error, correct the
situation and resume operation. That requires the opcode indicate at
least SEND vs RECV, and that qp_num be valid.

Frankly, it makes no sense that only wr_id is valid. The wr_id was
taken from a RQ/SQ, so qp_num and opcode must be knowable.

mlx4 HW can do this right now, it looks to me like QIB does it
already, donno about mthca. I'd say even if you have the view that
IBTA says it is not portable, having the information come out is still
very useful.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help