>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.

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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to