aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-03 01:35:31 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-05 05:29:40 -0400
commit534cb283efef9fdbd9f70f4615054d26aa444dd6 (patch)
treee044ce1397f698d107282ae035fb0d30944b86c3 /drivers/infiniband/hw
parent1d248b1cf4e09dbec8cef5f7fbeda5874248bd09 (diff)
cxgb3: Convert t3_l2t_get() over to dst_neigh_lookup().
This means passing in a suitable destination address. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_cm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index 740dcc065cf2..77b6b182778a 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -1374,7 +1374,7 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1374 goto reject; 1374 goto reject;
1375 } 1375 }
1376 dst = &rt->dst; 1376 dst = &rt->dst;
1377 l2t = t3_l2t_get(tdev, dst, NULL); 1377 l2t = t3_l2t_get(tdev, dst, NULL, &req->peer_ip);
1378 if (!l2t) { 1378 if (!l2t) {
1379 printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n", 1379 printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n",
1380 __func__); 1380 __func__);
@@ -1942,7 +1942,8 @@ int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
1942 goto fail3; 1942 goto fail3;
1943 } 1943 }
1944 ep->dst = &rt->dst; 1944 ep->dst = &rt->dst;
1945 ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst, NULL); 1945 ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst, NULL,
1946 &cm_id->remote_addr.sin_addr.s_addr);
1946 if (!ep->l2t) { 1947 if (!ep->l2t) {
1947 printk(KERN_ERR MOD "%s - cannot alloc l2e.\n", __func__); 1948 printk(KERN_ERR MOD "%s - cannot alloc l2e.\n", __func__);
1948 err = -ENOMEM; 1949 err = -ENOMEM;