aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/core/addr.c2
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_cm.c4
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c4
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c2
-rw-r--r--drivers/net/bonding/bond_main.c6
-rw-r--r--drivers/net/cnic.c2
-rw-r--r--drivers/scsi/cxgb3i/cxgb3i_offload.c4
7 files changed, 12 insertions, 12 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index 0b926e45afe2..a5ea1bce9689 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -215,7 +215,7 @@ static int addr4_resolve(struct sockaddr_in *src_in,
215 215
216 neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->idev->dev); 216 neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->idev->dev);
217 if (!neigh || !(neigh->nud_state & NUD_VALID)) { 217 if (!neigh || !(neigh->nud_state & NUD_VALID)) {
218 neigh_event_send(rt->u.dst.neighbour, NULL); 218 neigh_event_send(rt->dst.neighbour, NULL);
219 ret = -ENODATA; 219 ret = -ENODATA;
220 if (neigh) 220 if (neigh)
221 goto release; 221 goto release;
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index ebfb117ba68b..abd683ea326d 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -1364,7 +1364,7 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1364 __func__); 1364 __func__);
1365 goto reject; 1365 goto reject;
1366 } 1366 }
1367 dst = &rt->u.dst; 1367 dst = &rt->dst;
1368 l2t = t3_l2t_get(tdev, dst->neighbour, dst->neighbour->dev); 1368 l2t = t3_l2t_get(tdev, dst->neighbour, dst->neighbour->dev);
1369 if (!l2t) { 1369 if (!l2t) {
1370 printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n", 1370 printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n",
@@ -1932,7 +1932,7 @@ int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
1932 err = -EHOSTUNREACH; 1932 err = -EHOSTUNREACH;
1933 goto fail3; 1933 goto fail3;
1934 } 1934 }
1935 ep->dst = &rt->u.dst; 1935 ep->dst = &rt->dst;
1936 1936
1937 /* get a l2t entry */ 1937 /* get a l2t entry */
1938 ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst->neighbour, 1938 ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst->neighbour,
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index 30ce0a8eca09..8b693c8c25e2 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -1364,7 +1364,7 @@ static int pass_accept_req(struct c4iw_dev *dev, struct sk_buff *skb)
1364 __func__); 1364 __func__);
1365 goto reject; 1365 goto reject;
1366 } 1366 }
1367 dst = &rt->u.dst; 1367 dst = &rt->dst;
1368 if (dst->neighbour->dev->flags & IFF_LOOPBACK) { 1368 if (dst->neighbour->dev->flags & IFF_LOOPBACK) {
1369 pdev = ip_dev_find(&init_net, peer_ip); 1369 pdev = ip_dev_find(&init_net, peer_ip);
1370 BUG_ON(!pdev); 1370 BUG_ON(!pdev);
@@ -1938,7 +1938,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
1938 err = -EHOSTUNREACH; 1938 err = -EHOSTUNREACH;
1939 goto fail3; 1939 goto fail3;
1940 } 1940 }
1941 ep->dst = &rt->u.dst; 1941 ep->dst = &rt->dst;
1942 1942
1943 /* get a l2t entry */ 1943 /* get a l2t entry */
1944 if (ep->dst->neighbour->dev->flags & IFF_LOOPBACK) { 1944 if (ep->dst->neighbour->dev->flags & IFF_LOOPBACK) {
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 986d6f32dded..d876d0435cd4 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -1146,7 +1146,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
1146 } 1146 }
1147 1147
1148 if ((neigh == NULL) || (!(neigh->nud_state & NUD_VALID))) 1148 if ((neigh == NULL) || (!(neigh->nud_state & NUD_VALID)))
1149 neigh_event_send(rt->u.dst.neighbour, NULL); 1149 neigh_event_send(rt->dst.neighbour, NULL);
1150 1150
1151 ip_rt_put(rt); 1151 ip_rt_put(rt);
1152 return rc; 1152 return rc;
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 1b19276cff12..ac4f94b7da37 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -2584,7 +2584,7 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2584 /* 2584 /*
2585 * This target is not on a VLAN 2585 * This target is not on a VLAN
2586 */ 2586 */
2587 if (rt->u.dst.dev == bond->dev) { 2587 if (rt->dst.dev == bond->dev) {
2588 ip_rt_put(rt); 2588 ip_rt_put(rt);
2589 pr_debug("basa: rtdev == bond->dev: arp_send\n"); 2589 pr_debug("basa: rtdev == bond->dev: arp_send\n");
2590 bond_arp_send(slave->dev, ARPOP_REQUEST, targets[i], 2590 bond_arp_send(slave->dev, ARPOP_REQUEST, targets[i],
@@ -2595,7 +2595,7 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2595 vlan_id = 0; 2595 vlan_id = 0;
2596 list_for_each_entry(vlan, &bond->vlan_list, vlan_list) { 2596 list_for_each_entry(vlan, &bond->vlan_list, vlan_list) {
2597 vlan_dev = vlan_group_get_device(bond->vlgrp, vlan->vlan_id); 2597 vlan_dev = vlan_group_get_device(bond->vlgrp, vlan->vlan_id);
2598 if (vlan_dev == rt->u.dst.dev) { 2598 if (vlan_dev == rt->dst.dev) {
2599 vlan_id = vlan->vlan_id; 2599 vlan_id = vlan->vlan_id;
2600 pr_debug("basa: vlan match on %s %d\n", 2600 pr_debug("basa: vlan match on %s %d\n",
2601 vlan_dev->name, vlan_id); 2601 vlan_dev->name, vlan_id);
@@ -2613,7 +2613,7 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2613 if (net_ratelimit()) { 2613 if (net_ratelimit()) {
2614 pr_warning("%s: no path to arp_ip_target %pI4 via rt.dev %s\n", 2614 pr_warning("%s: no path to arp_ip_target %pI4 via rt.dev %s\n",
2615 bond->dev->name, &fl.fl4_dst, 2615 bond->dev->name, &fl.fl4_dst,
2616 rt->u.dst.dev ? rt->u.dst.dev->name : "NULL"); 2616 rt->dst.dev ? rt->dst.dev->name : "NULL");
2617 } 2617 }
2618 ip_rt_put(rt); 2618 ip_rt_put(rt);
2619 } 2619 }
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c
index fe925663d39a..908d89a4fe86 100644
--- a/drivers/net/cnic.c
+++ b/drivers/net/cnic.c
@@ -2824,7 +2824,7 @@ static int cnic_get_v4_route(struct sockaddr_in *dst_addr,
2824 2824
2825 err = ip_route_output_key(&init_net, &rt, &fl); 2825 err = ip_route_output_key(&init_net, &rt, &fl);
2826 if (!err) 2826 if (!err)
2827 *dst = &rt->u.dst; 2827 *dst = &rt->dst;
2828 return err; 2828 return err;
2829#else 2829#else
2830 return -ENETUNREACH; 2830 return -ENETUNREACH;
diff --git a/drivers/scsi/cxgb3i/cxgb3i_offload.c b/drivers/scsi/cxgb3i/cxgb3i_offload.c
index a175be9c496f..3b6a06eebf7f 100644
--- a/drivers/scsi/cxgb3i/cxgb3i_offload.c
+++ b/drivers/scsi/cxgb3i/cxgb3i_offload.c
@@ -1587,7 +1587,7 @@ cxgb3i_find_dev(struct net_device *dev, __be32 ipaddr)
1587 1587
1588 err = ip_route_output_key(dev ? dev_net(dev) : &init_net, &rt, &fl); 1588 err = ip_route_output_key(dev ? dev_net(dev) : &init_net, &rt, &fl);
1589 if (!err) 1589 if (!err)
1590 return (&rt->u.dst)->dev; 1590 return (&rt->dst)->dev;
1591 1591
1592 return NULL; 1592 return NULL;
1593} 1593}
@@ -1649,7 +1649,7 @@ int cxgb3i_c3cn_connect(struct net_device *dev, struct s3_conn *c3cn,
1649 c3cn->saddr.sin_addr.s_addr = rt->rt_src; 1649 c3cn->saddr.sin_addr.s_addr = rt->rt_src;
1650 1650
1651 /* now commit destination to connection */ 1651 /* now commit destination to connection */
1652 c3cn->dst_cache = &rt->u.dst; 1652 c3cn->dst_cache = &rt->dst;
1653 1653
1654 /* try to establish an offloaded connection */ 1654 /* try to establish an offloaded connection */
1655 dev = cxgb3_egress_dev(c3cn->dst_cache->dev, c3cn, 0); 1655 dev = cxgb3_egress_dev(c3cn->dst_cache->dev, c3cn, 0);