public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH/libmlx] Set the ibv_wc.opcode even if the wc is an error wc
Date: Wed, 9 Mar 2011 00:04:41 -0700	[thread overview]
Message-ID: <20110309070441.GA25213@obsidianresearch.com> (raw)
In-Reply-To: <4D771E0F.7040402-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

On Wed, Mar 09, 2011 at 08:28:31AM +0200, Or Gerlitz wrote:
> On 3/9/2011 6:26 AM, Jason Gunthorpe wrote:
> >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

  parent reply	other threads:[~2011-03-09  7:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09  4:26 [PATCH/libmlx] Set the ibv_wc.opcode even if the wc is an error wc Jason Gunthorpe
     [not found] ` <20110309042613.GA21606-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-03-09  6:28   ` Or Gerlitz
     [not found]     ` <4D771E0F.7040402-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-03-09  7:04       ` Jason Gunthorpe [this message]
     [not found]         ` <20110309070441.GA25213-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-03-09  7:37           ` Or Gerlitz
     [not found]             ` <4D772E36.90103-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-03-09 11:31               ` Bart Van Assche
2011-03-09 17:40               ` Jason Gunthorpe
     [not found]                 ` <20110309174044.GO22729-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-03-09 19:09                   ` Bart Van Assche
2011-03-09 11:14           ` Bart Van Assche
     [not found]             ` <AANLkTinsu1xCJr0ROfjGABWg6yHZit27eSFPZgd7GFF2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-09 17:42               ` Jason Gunthorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110309070441.GA25213@obsidianresearch.com \
    --to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox