[openib-general] Re: [PATCH] CMA: allow/require bind before connect

Sean Hefty mshefty at ichips.intel.com
Wed Mar 29 10:41:42 PST 2006


Michael S. Tsirkin wrote:
> I'm fine with not requiring bind before connect.
> However, CMA must *allow* bind before connect and it does not currently.

It does permit this, but requires using an IP address that matches with a local 
ipoib device.

> So if I bind to a local port with ANY or loopback IP address,
> connect fails with -EINVAL. Could you fix this please?

I can fix this, but I think that you're wanting more than just fixing the bug 
where rdma_resolve_addr() returns -EINVAL after calling rdma_bind_addr().

What behavior are you expected from rdma_bind_addr() if you specify a zero IP 
address?  loopback IP address?  What about zero for the port number?

> Small correction: TCP always binds before connect - it does autobind for you if
> you don't.

I should have said sockets instead of TCP.

- Sean





More information about the general mailing list