[openib-general][RFC][CMA]: ib_cma_get_device hot unplug issue

Caitlin Bestler caitlinb at broadcom.com
Wed Sep 21 09:39:49 PDT 2005


 

> -----Original Message-----
> From: openib-general-bounces at openib.org 
> [mailto:openib-general-bounces at openib.org] On Behalf Of Sean Hefty
> Sent: Wednesday, September 21, 2005 9:22 AM
> To: Guy German
> Cc: Openib-General at Openib.Org
> Subject: Re: [openib-general][RFC][CMA]: ib_cma_get_device 
> hot unplug issue
> 
> Guy German wrote:
> >> We could also require users to pass in a device structure as input 
> >> and let the calls fail if lookup fails.  For example, we could add 
> >> calls to get the IP addresses associated with a particular 
> device port.
> > 
> > I am not quite sure I follow you here, but I think it is not enough 
> > that lookup succeeds, you need to synchronize between the 
> removal cb 
> > and the verbs calls, via locking mechanism of some sort 
> (lock before 
> > device free and lock before calling ib_query_port, for example)
> 
> I don't think that the CMA needs to register as a device 
> client.  I was referring to providing a call such as:
> 
> ib_device_get_ip(struct ib_device, struct sockaddr*, int 
> num_sockaddr);
> 
> To return all IP addresses associated with the given device.  
> The caller can now coordinate calling this routine with 
> device removal.
> 

Why not simply specify the net device, and use the existing
look ups to get the devices IP addresses?




More information about the general mailing list