[ofa-general] Question about addr_resolve_remote

Celal Ozturk celaloztu at gmail.com
Thu Jul 30 11:27:45 PDT 2009


Hi,

I'm using OFA 1.4.1 and I have a NetEffects RNIC. IP of my RNIC is
192.168.0.1 and IP of my NIC is 10.127.227.60.
When I call rdma_resolve_addr for an IP that doesn't exist, like 4.5.7.8,
the result state of neigh_lookup is set to NUD_REACHABLE. This happens
because after ip_route_output_key is called, rt->rt_gateway is set to
10.127.227.1, while rt->rt_dst is 4.5.7.8
I don't have much knowledge about linux networking but when I use rt->rt_dst
instead of rt->rt_gateway, I get the appropriate response.
This NUD_REACHABLE state is not a problem for OFA because it checks the gids
before calling cma_attach_to_dev, but still, it looks weird to me to get a
NUD_REACHABLE state.
Do you think it would be a problem if I changed
neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->idev->dev);
to
neigh = neigh_lookup(&arp_tbl, &rt->rt_dst, rt->idev->dev);

Thanks,
Celal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20090730/77f1d420/attachment.html>


More information about the general mailing list