[openib-general] Re: [PATCH] sdp: replace ip_dev_find with dev_base scan (was Re: ip_dev_find resolution?)
Michael S. Tsirkin
mst at mellanox.co.il
Mon Dec 12 07:28:43 PST 2005
Quoting Hal Rosenstock <halr at voltaire.com>:
> > I've coded the following up since I grew tired of patching my kernels
> > to run sdp. Seems to work fine for me, can someone please speak up
> > on why this isnt a good idea for CMA, as well?
>
> Sorry for the slow response on this. I meant to dig this out over the
> weekend.
>
> I believe the reason it was changed from searching the netdevices list
> to ip_dev_find originally was that this really is a route lookup on the
> dest addr to determine what the local outgoing interface is and that
> can't be done directly from the netdevices list if the destination is
> not (IP) subnet local (e.g. gateway cases).
What you are saying is, the original approach didnt do ip route lookup at all,
and thats why it was changed?
But now we only do the list walk if the ip route resolution returns
a loopback device, so we are ok, right?
--
MST
More information about the general
mailing list