public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: "Hefty,
	Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"linux-rdma
	(linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: iwarp QP transtion in rdma_disconnect
Date: Wed, 30 Oct 2013 17:11:53 -0500	[thread overview]
Message-ID: <52718429.2030804@opengridcomputing.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A8237388CF2E28-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>

The SQD state is mapped to the iWARP CLOSING state.  In this state, the 
protocol tries to do an orderly connection shutdown.  In TCP terms, it 
will do the TCP FIN, FIN/ACK, ACK orderly shutdown.   If that fails, or 
for other reasons, the provider (or the application) might just move the 
QP to ERR which maps to the iWARP ERROR state which would cause an 
abrupt connection reset (one side or both sends a TCP RST).



On 10/30/2013 4:48 PM, Hefty, Sean wrote:
> Can one of the iwarp developers tell me why the QP transition for iwarp is SQD rather than ERR during rdma_disconnect?  I can't remember the reason, and I don't see that SQD is listed as a QP state in the iwarp spec.
>
> int rdma_disconnect(struct rdma_cm_id *id)
> {
> 	...
>
> 	switch (id->verbs->device->transport_type) {
> 	case IBV_TRANSPORT_IB:
> 		ret = ucma_modify_qp_err(id);
> 		break;
> 	case IBV_TRANSPORT_IWARP:
> 		ret = ucma_modify_qp_sqd(id);
> 		break;
>
>
> - Sean
> --
> 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

--
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:[~2013-10-30 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30 21:48 iwarp QP transtion in rdma_disconnect Hefty, Sean
     [not found] ` <1828884A29C6694DAF28B7E6B8A8237388CF2E28-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-10-30 22:11   ` Steve Wise [this message]
     [not found]     ` <52718429.2030804-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2013-10-30 22:24       ` Hefty, Sean

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=52718429.2030804@opengridcomputing.com \
    --to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@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