Commit 935ef2d7 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier

RDMA/cma: Use neigh_event_send() to start neighbour discovery

Calling arp_send() to initiate neighbour discovery (ND) doesn't do the
full ND protocol.  Namely, it doesn't handle retransmitting the arp
request if it is dropped. The function neigh_event_send() does all
this.  Without doing full ND, RDMA address resolution fails in the
presence of dropped ARP broadcast packets.
Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Acked-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 3a31c419
...@@ -161,8 +161,7 @@ static void addr_send_arp(struct sockaddr_in *dst_in) ...@@ -161,8 +161,7 @@ static void addr_send_arp(struct sockaddr_in *dst_in)
if (ip_route_output_key(&rt, &fl)) if (ip_route_output_key(&rt, &fl))
return; return;
arp_send(ARPOP_REQUEST, ETH_P_ARP, rt->rt_gateway, rt->idev->dev, neigh_event_send(rt->u.dst.neighbour, NULL);
rt->rt_src, NULL, rt->idev->dev->dev_addr, NULL);
ip_rt_put(rt); ip_rt_put(rt);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment