[ofa-general] RE: pick the outgoing HCA based on the IP used for bind
Richard Frank
richard.frank at oracle.com
Fri Feb 6 15:31:40 PST 2009
Interesting - Andy Grover pointed this out too - and I totally (as
usual) missed the point. :(
Jason Gunthorpe wrote:
> On Fri, Feb 06, 2009 at 12:05:48PM -0500, Richard Frank wrote:
>
>> I played around with this a bit more yesterday - and it looks like
>> rdma_bind_addr()->rdma_resolve_ip()->ip_dev_find() is always returning the
>> first matching entry in the routing table... even though we are providing
>> the source ip for the bind...
>>
>
> Right, thats the trouble, it shouldn't be calling ip_dev_find on the
> bind path with any address.. ip_route_output_key needs to be used to
> get the device.
>
> Just looking at the 2.6.27 upstream it looks like ip_dev_find is used
> in many places where a route lookup would probably be more appropriate..
>
> Jason
>
More information about the general
mailing list