diff options
author | Xin Long <lucien.xin@gmail.com> | 2022-05-16 21:30:29 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-17 18:03:23 -0700 |
commit | 9cc341286e99a268e63efc6e937d4c467bcf386c (patch) | |
tree | 5ea72365789da1eb44a3c2709e19af119a6635da /net/decnet | |
parent | 7c7dcd66c5e0537b33b4e217ddb347d768a4b294 (diff) |
dn_route: set rt neigh to blackhole_netdev instead of loopback_dev in ifdown
Like other places in ipv4/6 dst ifdown, change to use blackhole_netdev
instead of pernet loopback_dev in dn dst ifdown.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/0cdf10e5a4af509024f08644919121fb71645bc2.1652751029.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index d1d78a463a06..552a53f1d5d0 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c @@ -159,7 +159,7 @@ static void dn_dst_ifdown(struct dst_entry *dst, struct net_device *dev, int how struct neighbour *n = rt->n; if (n && n->dev == dev) { - n->dev = dev_net(dev)->loopback_dev; + n->dev = blackhole_netdev; dev_hold(n->dev); dev_put(dev); } |