[openib-general] netdev reference counting problem with ib_at

Hal Rosenstock halr at voltaire.com
Mon Sep 26 12:19:16 PDT 2005


On Fri, 2005-09-16 at 20:15, Roland Dreier wrote:
>     Sean> I continue to hit this same issue, so I've started looking
>     Sean> at the ib_at code. Ib_at accesses struct ipoib_dev_priv to
>     Sean> get information about the related port that IPoIB is using.
>     Sean> Is there some other way for AT to get to the same
>     Sean> information?  It seems wrong for AT to poke into the priv
>     Sean> data of a net_device. Should IPoIB expose a function that AT
>     Sean> can call to map IP addresses (or net_device) to IB ports?
>     Sean> How do we want to handle this long term?
> 
> It probably makes sense to add an ib_ptr (or rdma_ptr) to struct
> net_device (along with all the other ones like ip_ptr, dn_ptr,
> ax25_ptr, etc).

Is this ib_ptr or ipoib_ptr ? I would think iWARP devices would need
this.

-- Hal




More information about the general mailing list