]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/core/dst.c
net: Abstract dst->neighbour accesses behind helpers.
[mirror_ubuntu-zesty-kernel.git] / net / core / dst.c
index 4aacc14936a052960bbd56921e0a69339aad2cab..14b33baf0733b51db4ded1d6022a731939922aeb 100644 (file)
@@ -171,7 +171,7 @@ void *dst_alloc(struct dst_ops *ops, struct net_device *dev,
        dst_init_metrics(dst, dst_default_metrics, true);
        dst->expires = 0UL;
        dst->path = dst;
-       dst->neighbour = NULL;
+       dst->_neighbour = NULL;
 #ifdef CONFIG_XFRM
        dst->xfrm = NULL;
 #endif
@@ -229,11 +229,11 @@ struct dst_entry *dst_destroy(struct dst_entry * dst)
        smp_rmb();
 
 again:
-       neigh = dst->neighbour;
+       neigh = dst->_neighbour;
        child = dst->child;
 
        if (neigh) {
-               dst->neighbour = NULL;
+               dst->_neighbour = NULL;
                neigh_release(neigh);
        }
 
@@ -363,8 +363,8 @@ static void dst_ifdown(struct dst_entry *dst, struct net_device *dev,
                dst->dev = dev_net(dst->dev)->loopback_dev;
                dev_hold(dst->dev);
                dev_put(dev);
-               if (dst->neighbour && dst->neighbour->dev == dev) {
-                       dst->neighbour->dev = dst->dev;
+               if (dst->_neighbour && dst->_neighbour->dev == dev) {
+                       dst->_neighbour->dev = dst->dev;
                        dev_hold(dst->dev);
                        dev_put(dev);
                }