[openib-general] Re: [PATCH] CMA: allow/require bind before	connect
    Michael S. Tsirkin 
    mst at mellanox.co.il
       
    Wed Mar 29 10:56:32 PST 2006
    
    
  
Quoting r. Sean Hefty <mshefty at ichips.intel.com>:
> Subject: Re: [openib-general] Re: [PATCH] CMA: allow/require bind before connect
> 
> 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.
Correct. ANY works for bind/listen but not for bind/connect.
> >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().
Actually, I think that's all I wanted it to do :)
> What behavior are you expected from rdma_bind_addr() if you specify a zero 
> IP address?  loopback IP address?
ANY - bind to all IP addresses. This then gets put in SDP hello message,
returned to user by socket query, and is marked reserved for other binds.
> What about zero for the port number?
This needs to be addressed separately - either at ULP level or in CMA.
-- 
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies
    
    
More information about the general
mailing list