[openib-general] Re: [PATCH] IPoIB: Add API to retrieve ib device, port, and pkey
Hal Rosenstock
halr at voltaire.com
Thu Oct 6 11:55:02 PDT 2005
On Thu, 2005-10-06 at 13:50, Sean Hefty wrote:
> Roland Dreier wrote:
> > Did we ever figure out how to handle the hotplug issues with the
> > lifetime of the struct ib_device pointer? Right now this API is
> > unsafe, because a caller can get a pointer to a device that has
> > already disappeared.
>
> Is it possible to retrieve the pkey using net_device->class_dev?
I think so, but would that be any safer ? I think it might end up going
through the IPoIB device private data (or an API anyhow).
-- Hal
More information about the general
mailing list