* Reliable IB connections (RC) and event ordering
[not found] ` <e2e108260911290243h623d45bar77127e9610c8203e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-11-29 10:45 ` Bart Van Assche
[not found] ` <e2e108260911290245mb9d603wf46ac7925824a9c4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2009-11-29 10:45 UTC (permalink / raw)
To: OFED mailing list
Hello,
While working on the SRP target implementation I noticed the following
(the SRP protocol requires that an SRP initiator sets up an RC
connection to the SRP target during login):
* Sometimes (about 25% of SRP logins) the completion queue callback
function reports data arrival to the SRP target before the RTU event
has been delivered.
* Sometimes the completion queue callback function reports data
arrival after the DREQ message has been sent.
* According to the IBTA, message order is preserved over RC
connections and the system that sent the RTU message may only start
sending data after the RTU message has been sent (section 12.2).
Is this known behavior ? Is this the intended behavior of the Linux
InfiniBand stack ?
Bart.
--
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: Reliable IB connections (RC) and event ordering
[not found] ` <e2e108260911290245mb9d603wf46ac7925824a9c4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-11-29 19:03 ` Roland Dreier
[not found] ` <adak4x9ywzf.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Roland Dreier @ 2009-11-29 19:03 UTC (permalink / raw)
To: Bart Van Assche; +Cc: OFED mailing list
> While working on the SRP target implementation I noticed the following
> (the SRP protocol requires that an SRP initiator sets up an RC
> connection to the SRP target during login):
> * Sometimes (about 25% of SRP logins) the completion queue callback
> function reports data arrival to the SRP target before the RTU event
> has been delivered.
> * Sometimes the completion queue callback function reports data
> arrival after the DREQ message has been sent.
> * According to the IBTA, message order is preserved over RC
> connections and the system that sent the RTU message may only start
> sending data after the RTU message has been sent (section 12.2).
>
> Is this known behavior ? Is this the intended behavior of the Linux
> InfiniBand stack ?
Yes, this is known and I don't think there is any other sane way to
implement things. Recall that CM messages (RTU, DREQ, etc) are sent on
a separate QP than the actual connection being established, and that
there is no ordering between work requests on separate work queues.
If you want to refer to the IBA, you could look at figure 132 in section
12.9.6 -- an RC connection transitions to established when either the
RTU is received, or a message is received on the connection. The IBA
takes into account this lack of ordering in multiple places -- defining
"communication established" async events, etc.
- R.
--
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: Reliable IB connections (RC) and event ordering
[not found] ` <adak4x9ywzf.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
@ 2009-12-01 9:25 ` Or Gerlitz
0 siblings, 0 replies; 3+ messages in thread
From: Or Gerlitz @ 2009-12-01 9:25 UTC (permalink / raw)
To: Bart Van Assche; +Cc: Roland Dreier, OFED mailing list
Roland Dreier wrote:
> The IBA takes into account this lack of ordering in multiple places -- defining
> "communication established" async events, etc.
same goes for the IB stack... e.g take a look on the ib_cm_notify and rdma_notify APIs
Or.
--
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:[~2009-12-01 9:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <e2e108260911290243h623d45bar77127e9610c8203e@mail.gmail.com>
[not found] ` <e2e108260911290243h623d45bar77127e9610c8203e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-29 10:45 ` Reliable IB connections (RC) and event ordering Bart Van Assche
[not found] ` <e2e108260911290245mb9d603wf46ac7925824a9c4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-29 19:03 ` Roland Dreier
[not found] ` <adak4x9ywzf.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2009-12-01 9:25 ` Or Gerlitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox