Thread (1 message) 1 message, 1 author, 2012-09-19

Re: how to preserve QP over HA events for librdmacm applications

From: Atchley, Scott <hidden>
Date: 2012-09-19 16:52:41

On Sep 19, 2012, at 11:58 AM, Alex Rosenbaum [off-list ref] wrote:
Since we use the RDMA_PS_IPOIB we need librdmacm to help get the correct pkey_index and qkey (in INIT->RTR transition) to match IPoIB's UD QP own values. If not, than our user space UD QP will not be able to send/recv from IPoIB on remote machines (which is what we want to gain by using the IPOIB port space).

Maybe we can save the values used from the rdma_create_qp and reuse them once modify the UD QP state by libverbs (ibv_modify_qp).
It would be nice if we had access to the rdma's modify qp wrapper to do this nicely from application level.
I too would be interested in bringing a QP from error back to a usable state. I have been debating whether to reconnect using the current RDMA calls versus trying to transition the existing RC QP.

I assumed to transition the existing QP that I would need to open a socket to coordinate the two sides. Is that correct?

If I were instead to use rdma_connect(), does it require a new CM id or just a new QP within the same id?

Thanks,

Scott

-----Original Message-----
From: Or Gerlitz 
Sent: Wednesday, September 19, 2012 6:53 PM
To: Alex Rosenbaum
Cc: Hefty, Sean; linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Subject: Re: how to preserve QP over HA events for librdmacm applications

On 19/09/2012 18:48, Hefty, Sean wrote:
quoted
quoted
Can this flushing be somehow done with the current 
librdmacm/libibverbs APIs or we need some enhancement?
You can call verbs directly to transition the QP state.  That leaves the CM state unchanged, which doesn't really matter for UD QPs anyway.
Alex,

Any reason we can't deploy this hack? is that for the IPoIB port space it would require copying some low level code from librdmacm or even from the kernel? e.g the IPoIB qkey, etc.

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
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help