RDMA/nes: Fix for resolving the neigh
PATCH 1/1 RDMA/nes: Fix for resolving the neigh
Neighbor resolution doesn't work without this fix
Signed-off-by Tatyana Nikolova <[email protected]>
--- drivers/infiniband/hw/nes/nes_cm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/infiniband/hw/nes/nes_cm.c +3 -2
@@ -1520,8 +1520,9 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpiint rc = arpindex;struct net_device *netdev;struct nes_adapter *nesadapter = nesvnic->nesdev->nesadapter; +__be32 dst_ipaddr =htonl (dst_ip); - rt =ip_route_output (&init_net,htonl (dst_ip),0 ,0 ,0 ); + rt =ip_route_output (&init_net, dst_ipaddr, nesvnic->local_ipaddr,0 ,0 );if (IS_ERR (rt)) {printk (KERN_ERR "%s: ip_route_output_key failed for 0x%08X\n" , __func__, dst_ip);
@@ -1533,7 +1534,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpielse netdev = nesvnic->netdev; - neigh =neigh_lookup (&arp_tbl, &rt->rt_gateway, netdev); + neigh =dst_neigh_lookup (&rt->dst, &dst_ipaddr);rcu_read_lock ();if (neigh) {
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 3 lines · Tatyana Nikolova
Neighbor resolution doesn't work without this fix
Signed-off-by Tatyana Nikolova <[email protected]>
Thanks, applied.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD