[openib-general] Re: 2.6.14 heads up: ip_dev_find() not exported

James Lentini jlentini at netapp.com
Mon Sep 26 08:16:58 PDT 2005



On Mon, 26 Sep 2005, Michael S. Tsirkin wrote:

> Quoting r. Roland Dreier <rolandd at cisco.com>:
> > Subject: 2.6.14 heads up: ip_dev_find() not exported
> > 
> > I noticed while compiling against an up-to-date kernel tree that SDP
> > and IBAT both use the function ip_dev_find().  The EXPORT_SYMBOL for
> > this function was removed during the 2.6.14 devel cycle.
> > 
> > I haven't looked yet at what this function does, how SDP and IBAT use
> > it or what it could be replaced by.  But now would be a good time to
> > figure out whether we need to ask for it to be re-exported, or if
> > there's a better alternative to do whatever it does for us.
> > 
> >  - R.
> 
> If ip_route_output_key resolves to a loopback device,
> sdp uses ip_dev_find to try and locate the actual hardware device
> that the source ip address is for.
> 
> Do you know of a better way to do this?
> 
> I think we could get by with just dev_get_by_index, I'll have to
> investigate this.

FYI: I found a bug in IBAT's use of dev_get_by_index(). See:

http://openib.org/pipermail/openib-general/2005-September/011668.html



More information about the general mailing list