[openib-general] netdev reference counting problem with ib_at

Roland Dreier rolandd at cisco.com
Fri Sep 16 17:15:22 PDT 2005


    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).

 - R.



More information about the general mailing list