diff options
author | David Miller <davem@davemloft.net> | 2011-12-02 11:52:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-05 15:20:19 -0500 |
commit | 2721745501a26d0dc3b88c0d2f3aa11471891388 (patch) | |
tree | e9c09622b11ad7d9317b4b01824374a852867c28 /drivers/infiniband | |
parent | 761965eab38d2cbc59c36e355c59609e3a04705a (diff) |
net: Rename dst_get_neighbour{, _raw} to dst_get_neighbour_noref{, _raw}.
To reflect the fact that a refrence is not obtained to the
resulting neighbour entry.
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/addr.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_cm.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes_cm.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 8 | ||||
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index a20c3c8224ea..70154f7e0415 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c | |||
@@ -217,7 +217,7 @@ static int addr4_resolve(struct sockaddr_in *src_in, | |||
217 | neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->dst.dev); | 217 | neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->dst.dev); |
218 | if (!neigh || !(neigh->nud_state & NUD_VALID)) { | 218 | if (!neigh || !(neigh->nud_state & NUD_VALID)) { |
219 | rcu_read_lock(); | 219 | rcu_read_lock(); |
220 | neigh_event_send(dst_get_neighbour(&rt->dst), NULL); | 220 | neigh_event_send(dst_get_neighbour_noref(&rt->dst), NULL); |
221 | rcu_read_unlock(); | 221 | rcu_read_unlock(); |
222 | ret = -ENODATA; | 222 | ret = -ENODATA; |
223 | if (neigh) | 223 | if (neigh) |
@@ -277,7 +277,7 @@ static int addr6_resolve(struct sockaddr_in6 *src_in, | |||
277 | } | 277 | } |
278 | 278 | ||
279 | rcu_read_lock(); | 279 | rcu_read_lock(); |
280 | neigh = dst_get_neighbour(dst); | 280 | neigh = dst_get_neighbour_noref(dst); |
281 | if (!neigh || !(neigh->nud_state & NUD_VALID)) { | 281 | if (!neigh || !(neigh->nud_state & NUD_VALID)) { |
282 | if (neigh) | 282 | if (neigh) |
283 | neigh_event_send(neigh, NULL); | 283 | neigh_event_send(neigh, NULL); |
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c index c88b12beef25..23686df0517c 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_cm.c +++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c | |||
@@ -1376,7 +1376,7 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) | |||
1376 | } | 1376 | } |
1377 | dst = &rt->dst; | 1377 | dst = &rt->dst; |
1378 | rcu_read_lock(); | 1378 | rcu_read_lock(); |
1379 | neigh = dst_get_neighbour(dst); | 1379 | neigh = dst_get_neighbour_noref(dst); |
1380 | l2t = t3_l2t_get(tdev, neigh, neigh->dev); | 1380 | l2t = t3_l2t_get(tdev, neigh, neigh->dev); |
1381 | rcu_read_unlock(); | 1381 | rcu_read_unlock(); |
1382 | if (!l2t) { | 1382 | if (!l2t) { |
@@ -1949,7 +1949,7 @@ int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) | |||
1949 | ep->dst = &rt->dst; | 1949 | ep->dst = &rt->dst; |
1950 | 1950 | ||
1951 | rcu_read_lock(); | 1951 | rcu_read_lock(); |
1952 | neigh = dst_get_neighbour(ep->dst); | 1952 | neigh = dst_get_neighbour_noref(ep->dst); |
1953 | 1953 | ||
1954 | /* get a l2t entry */ | 1954 | /* get a l2t entry */ |
1955 | ep->l2t = t3_l2t_get(ep->com.tdev, neigh, neigh->dev); | 1955 | ep->l2t = t3_l2t_get(ep->com.tdev, neigh, neigh->dev); |
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 0747004313ad..e61c80271f99 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -1597,7 +1597,7 @@ static int pass_accept_req(struct c4iw_dev *dev, struct sk_buff *skb) | |||
1597 | } | 1597 | } |
1598 | dst = &rt->dst; | 1598 | dst = &rt->dst; |
1599 | rcu_read_lock(); | 1599 | rcu_read_lock(); |
1600 | neigh = dst_get_neighbour(dst); | 1600 | neigh = dst_get_neighbour_noref(dst); |
1601 | if (neigh->dev->flags & IFF_LOOPBACK) { | 1601 | if (neigh->dev->flags & IFF_LOOPBACK) { |
1602 | pdev = ip_dev_find(&init_net, peer_ip); | 1602 | pdev = ip_dev_find(&init_net, peer_ip); |
1603 | BUG_ON(!pdev); | 1603 | BUG_ON(!pdev); |
@@ -1825,7 +1825,7 @@ static int c4iw_reconnect(struct c4iw_ep *ep) | |||
1825 | ep->dst = &rt->dst; | 1825 | ep->dst = &rt->dst; |
1826 | 1826 | ||
1827 | rcu_read_lock(); | 1827 | rcu_read_lock(); |
1828 | neigh = dst_get_neighbour(ep->dst); | 1828 | neigh = dst_get_neighbour_noref(ep->dst); |
1829 | 1829 | ||
1830 | /* get a l2t entry */ | 1830 | /* get a l2t entry */ |
1831 | if (neigh->dev->flags & IFF_LOOPBACK) { | 1831 | if (neigh->dev->flags & IFF_LOOPBACK) { |
@@ -2308,7 +2308,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) | |||
2308 | ep->dst = &rt->dst; | 2308 | ep->dst = &rt->dst; |
2309 | 2309 | ||
2310 | rcu_read_lock(); | 2310 | rcu_read_lock(); |
2311 | neigh = dst_get_neighbour(ep->dst); | 2311 | neigh = dst_get_neighbour_noref(ep->dst); |
2312 | 2312 | ||
2313 | /* get a l2t entry */ | 2313 | /* get a l2t entry */ |
2314 | if (neigh->dev->flags & IFF_LOOPBACK) { | 2314 | if (neigh->dev->flags & IFF_LOOPBACK) { |
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index 0a52d72371ee..686667a362cf 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c | |||
@@ -1379,7 +1379,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi | |||
1379 | 1379 | ||
1380 | if ((neigh == NULL) || (!(neigh->nud_state & NUD_VALID))) { | 1380 | if ((neigh == NULL) || (!(neigh->nud_state & NUD_VALID))) { |
1381 | rcu_read_lock(); | 1381 | rcu_read_lock(); |
1382 | neigh_event_send(dst_get_neighbour(&rt->dst), NULL); | 1382 | neigh_event_send(dst_get_neighbour_noref(&rt->dst), NULL); |
1383 | rcu_read_unlock(); | 1383 | rcu_read_unlock(); |
1384 | } | 1384 | } |
1385 | ip_rt_put(rt); | 1385 | ip_rt_put(rt); |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index d3ed89ca4852..eef6786c8de6 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c | |||
@@ -564,7 +564,7 @@ static void neigh_add_path(struct sk_buff *skb, struct net_device *dev) | |||
564 | struct neighbour *n; | 564 | struct neighbour *n; |
565 | unsigned long flags; | 565 | unsigned long flags; |
566 | 566 | ||
567 | n = dst_get_neighbour(skb_dst(skb)); | 567 | n = dst_get_neighbour_noref(skb_dst(skb)); |
568 | neigh = ipoib_neigh_alloc(n, skb->dev); | 568 | neigh = ipoib_neigh_alloc(n, skb->dev); |
569 | if (!neigh) { | 569 | if (!neigh) { |
570 | ++dev->stats.tx_dropped; | 570 | ++dev->stats.tx_dropped; |
@@ -645,7 +645,7 @@ static void ipoib_path_lookup(struct sk_buff *skb, struct net_device *dev) | |||
645 | struct neighbour *n; | 645 | struct neighbour *n; |
646 | 646 | ||
647 | /* Look up path record for unicasts */ | 647 | /* Look up path record for unicasts */ |
648 | n = dst_get_neighbour(dst); | 648 | n = dst_get_neighbour_noref(dst); |
649 | if (n->ha[4] != 0xff) { | 649 | if (n->ha[4] != 0xff) { |
650 | neigh_add_path(skb, dev); | 650 | neigh_add_path(skb, dev); |
651 | return; | 651 | return; |
@@ -724,7 +724,7 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
724 | 724 | ||
725 | rcu_read_lock(); | 725 | rcu_read_lock(); |
726 | if (likely(skb_dst(skb))) | 726 | if (likely(skb_dst(skb))) |
727 | n = dst_get_neighbour(skb_dst(skb)); | 727 | n = dst_get_neighbour_noref(skb_dst(skb)); |
728 | 728 | ||
729 | if (likely(n)) { | 729 | if (likely(n)) { |
730 | if (unlikely(!*to_ipoib_neigh(n))) { | 730 | if (unlikely(!*to_ipoib_neigh(n))) { |
@@ -841,7 +841,7 @@ static int ipoib_hard_header(struct sk_buff *skb, | |||
841 | dst = skb_dst(skb); | 841 | dst = skb_dst(skb); |
842 | n = NULL; | 842 | n = NULL; |
843 | if (dst) | 843 | if (dst) |
844 | n = dst_get_neighbour_raw(dst); | 844 | n = dst_get_neighbour_noref_raw(dst); |
845 | if ((!dst || !n) && daddr) { | 845 | if ((!dst || !n) && daddr) { |
846 | struct ipoib_pseudoheader *phdr = | 846 | struct ipoib_pseudoheader *phdr = |
847 | (struct ipoib_pseudoheader *) skb_push(skb, sizeof *phdr); | 847 | (struct ipoib_pseudoheader *) skb_push(skb, sizeof *phdr); |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c index 873bff97e69e..f7ff9dd66cda 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c | |||
@@ -269,7 +269,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast, | |||
269 | 269 | ||
270 | skb->dev = dev; | 270 | skb->dev = dev; |
271 | if (dst) | 271 | if (dst) |
272 | n = dst_get_neighbour_raw(dst); | 272 | n = dst_get_neighbour_noref_raw(dst); |
273 | if (!dst || !n) { | 273 | if (!dst || !n) { |
274 | /* put pseudoheader back on for next time */ | 274 | /* put pseudoheader back on for next time */ |
275 | skb_push(skb, sizeof (struct ipoib_pseudoheader)); | 275 | skb_push(skb, sizeof (struct ipoib_pseudoheader)); |
@@ -728,7 +728,7 @@ out: | |||
728 | 728 | ||
729 | rcu_read_lock(); | 729 | rcu_read_lock(); |
730 | if (dst) | 730 | if (dst) |
731 | n = dst_get_neighbour(dst); | 731 | n = dst_get_neighbour_noref(dst); |
732 | if (n && !*to_ipoib_neigh(n)) { | 732 | if (n && !*to_ipoib_neigh(n)) { |
733 | struct ipoib_neigh *neigh = ipoib_neigh_alloc(n, | 733 | struct ipoib_neigh *neigh = ipoib_neigh_alloc(n, |
734 | skb->dev); | 734 | skb->dev); |