> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean Hefty > Sent: Wednesday, September 21, 2005 9:22 AM > To: Guy German > Cc: [email protected] > 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? _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
