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>
This commit is contained in:

committed by
David S. Miller

parent
761965eab3
commit
2721745501
@@ -136,7 +136,7 @@ static int ip6_finish_output2(struct sk_buff *skb)
|
||||
}
|
||||
|
||||
rcu_read_lock();
|
||||
neigh = dst_get_neighbour(dst);
|
||||
neigh = dst_get_neighbour_noref(dst);
|
||||
if (neigh) {
|
||||
int res = neigh_output(neigh, skb);
|
||||
|
||||
@@ -463,7 +463,7 @@ int ip6_forward(struct sk_buff *skb)
|
||||
send redirects to source routed frames.
|
||||
We don't send redirects to frames decapsulated from IPsec.
|
||||
*/
|
||||
n = dst_get_neighbour(dst);
|
||||
n = dst_get_neighbour_noref(dst);
|
||||
if (skb->dev == dst->dev && n && opt->srcrt == 0 && !skb_sec_path(skb)) {
|
||||
struct in6_addr *target = NULL;
|
||||
struct rt6_info *rt;
|
||||
@@ -983,7 +983,7 @@ static int ip6_dst_lookup_tail(struct sock *sk,
|
||||
* dst entry of the nexthop router
|
||||
*/
|
||||
rcu_read_lock();
|
||||
n = dst_get_neighbour(*dst);
|
||||
n = dst_get_neighbour_noref(*dst);
|
||||
if (n && !(n->nud_state & NUD_VALID)) {
|
||||
struct inet6_ifaddr *ifp;
|
||||
struct flowi6 fl_gw6;
|
||||
|
Reference in New Issue
Block a user