public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* iwarp QP transtion in rdma_disconnect
@ 2013-10-30 21:48 Hefty, Sean
       [not found] ` <1828884A29C6694DAF28B7E6B8A8237388CF2E28-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Hefty, Sean @ 2013-10-30 21:48 UTC (permalink / raw)
  To: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: iwarp QP transtion in rdma_disconnect
       [not found] ` <1828884A29C6694DAF28B7E6B8A8237388CF2E28-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2013-10-30 22:11   ` Steve Wise
       [not found]     ` <52718429.2030804-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Wise @ 2013-10-30 22:11 UTC (permalink / raw)
  To: Hefty, Sean,
	linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: iwarp QP transtion in rdma_disconnect
       [not found]     ` <52718429.2030804-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
@ 2013-10-30 22:24       ` Hefty, Sean
  0 siblings, 0 replies; 3+ messages in thread
From: Hefty, Sean @ 2013-10-30 22:24 UTC (permalink / raw)
  To: Steve Wise,
	linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@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).

thanks!
--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-30 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [not found]     ` <52718429.2030804-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2013-10-30 22:24       ` Hefty, Sean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox