mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
761965eab3
commit
2721745501
29 changed files with 58 additions and 58 deletions
|
|
@ -202,7 +202,7 @@ static int dn_neigh_output_packet(struct sk_buff *skb)
|
|||
{
|
||||
struct dst_entry *dst = skb_dst(skb);
|
||||
struct dn_route *rt = (struct dn_route *)dst;
|
||||
struct neighbour *neigh = dst_get_neighbour(dst);
|
||||
struct neighbour *neigh = dst_get_neighbour_noref(dst);
|
||||
struct net_device *dev = neigh->dev;
|
||||
char mac_addr[ETH_ALEN];
|
||||
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ static int dn_dst_gc(struct dst_ops *ops)
|
|||
*/
|
||||
static void dn_dst_update_pmtu(struct dst_entry *dst, u32 mtu)
|
||||
{
|
||||
struct neighbour *n = dst_get_neighbour(dst);
|
||||
struct neighbour *n = dst_get_neighbour_noref(dst);
|
||||
u32 min_mtu = 230;
|
||||
struct dn_dev *dn;
|
||||
|
||||
|
|
@ -713,7 +713,7 @@ out:
|
|||
static int dn_to_neigh_output(struct sk_buff *skb)
|
||||
{
|
||||
struct dst_entry *dst = skb_dst(skb);
|
||||
struct neighbour *n = dst_get_neighbour(dst);
|
||||
struct neighbour *n = dst_get_neighbour_noref(dst);
|
||||
|
||||
return n->output(n, skb);
|
||||
}
|
||||
|
|
@ -728,7 +728,7 @@ static int dn_output(struct sk_buff *skb)
|
|||
|
||||
int err = -EINVAL;
|
||||
|
||||
if ((neigh = dst_get_neighbour(dst)) == NULL)
|
||||
if ((neigh = dst_get_neighbour_noref(dst)) == NULL)
|
||||
goto error;
|
||||
|
||||
skb->dev = dev;
|
||||
|
|
@ -852,7 +852,7 @@ static int dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res)
|
|||
}
|
||||
rt->rt_type = res->type;
|
||||
|
||||
if (dev != NULL && dst_get_neighbour(&rt->dst) == NULL) {
|
||||
if (dev != NULL && dst_get_neighbour_noref(&rt->dst) == NULL) {
|
||||
n = __neigh_lookup_errno(&dn_neigh_table, &rt->rt_gateway, dev);
|
||||
if (IS_ERR(n))
|
||||
return PTR_ERR(n);
|
||||
|
|
|
|||
Loading…
Reference in a new issue