[openib-general] Re: ip_dev_find resolution?

Michael S. Tsirkin mst at mellanox.co.il
Wed Dec 7 00:22:20 PST 2005


Quoting r. Hal Rosenstock <halr at voltaire.com>:
> Subject: Re: ip_dev_find resolution?
> 
> On Tue, 2005-12-06 at 12:56, Michael S. Tsirkin wrote:
> > Actually, I wander whether instead of ip_dev_find we can just
> > 
> >                 read_lock(&dev_base_lock);
> >                 for (dev = dev_base; dev; dev = dev->next) {
> > 
> > and check the ip address?
> 
> working off the ip_ptr and ip6_ptr ?

Yes.

> > If this works, this has the advantage of supporting IPv6 as well.
> 
> This was introduced at one point and we subsequently changed to
> ip_dev_find. I forget exactly why this was but can dig it out if no one
> recalls.

Please do.

-- 
MST



More information about the general mailing list