public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Roberson <jroberson-gUAg20sWgfgcWVvVuXF20w@public.gmane.org>
To: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: RE: LID reconfiguration
Date: Mon, 23 Nov 2009 17:57:16 -1000 (HST)	[thread overview]
Message-ID: <alpine.BSF.2.00.0911231745350.1226@desktop> (raw)
In-Reply-To: <6A30FB8CEED94D778E7CDAE4660458DA-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>

On Mon, 16 Nov 2009, Sean Hefty wrote:

>> Is there an opensource example of using APM?  When I call ib_cm_send_lap()
>> the QP goes to some error state and my connections die.  Do I need to set
>> some QP attributes first?  I found a paper that describes the process but
>> does not contain sample code or any real details.
>
> Sending the LAP/APR only exchanges CM protocol messages.  You still need to
> modify the QP.  There's an old example program for the kernel that did APM, but
> it shouldn't be too hard to see what it did and convert it to a userspace app.
>
> See the cmpost sample in the test-apps branch of my rdma-dev.git tree.

Thank you.  This worked for me.  However, there seems to be some kind of 
race when the connection is first set up.  On the client if I call 
ib_cm_send_lap() immediately after ib_cm_send_rtu() returns successfully I 
get an EINVAL error.  If I delay for one second it works just fine. 
According to the spec the passive/server side can not send the lap so I 
can't send it in the rtu handler.  Presumably the call fails immediately 
after send_rtu because the server hasn't received that message yet?  Is 
this right?  Is there a way to do this cleanly without a delay?

I notice that if I create the initial attributes for the connection 
request with an alternate path specified the alt_path_state is still 
MIGRATED when I send rtu.  If I load a path after the connection is 
established I can fail back and forth without issue.

Thanks,
Jeff

>
http://www.openfabrics.org/git/?p=~shefty/rdma-dev.git;a=blob;f=drivers/infiniba
nd/util/cmpost/cmpost.c;h=99f1446af841fd34b50b7bdfce1360f741e10a63;hb=b5e668a9b6
d0f24d1a92e604e67c44f1452ea1e4
>
> - 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

  parent reply	other threads:[~2009-11-24  3:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 23:30 LID reconfiguration Jeff Roberson
2009-11-09 23:45 ` Jason Gunthorpe
     [not found]   ` <20091109234547.GH6188-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2009-11-09 23:56     ` Jeff Roberson
2009-11-10  0:20       ` Jason Gunthorpe
     [not found]         ` <20091110002047.GJ6188-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2009-11-17  4:38           ` Jeff Roberson
2009-11-17  4:51             ` Jason Gunthorpe
2009-11-17  5:15             ` Sean Hefty
     [not found]               ` <6A30FB8CEED94D778E7CDAE4660458DA-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-11-24  3:57                 ` Jeff Roberson [this message]
2009-11-24 17:49                   ` Sean Hefty
     [not found]                     ` <10477AA8CF094F2F92E8792307982F66-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-11-24 19:54                       ` Jeff Roberson
2009-11-24 19:59                         ` Sean Hefty
     [not found]                           ` <65B503E4F968463B8D6D5D019E036ED7-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-12-01  0:28                             ` Jeff Roberson
2009-12-01 15:55                               ` Sean Hefty
2009-11-10  7:07 ` Or Gerlitz
     [not found]   ` <4AF91138.7000809-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2009-11-10  7:11     ` Jeff Roberson
2009-11-10  7:44       ` Or Gerlitz

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=alpine.BSF.2.00.0911231745350.1226@desktop \
    --to=jroberson-guag20swgfgcwvvvuxf20w@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@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