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

Michael S. Tsirkin mst at mellanox.co.il
Mon Sep 26 07:41:25 PDT 2005


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.

-- 
MST



More information about the general mailing list