projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c7dcd6
)
dn_route: set rt neigh to blackhole_netdev instead of loopback_dev in ifdown
author
Xin Long
<lucien.xin@gmail.com>
Tue, 17 May 2022 01:30:29 +0000
(21:30 -0400)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 18 May 2022 01:03:23 +0000
(18:03 -0700)
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>
net/decnet/dn_route.c
patch
|
blob
|
history
diff --git
a/net/decnet/dn_route.c
b/net/decnet/dn_route.c
index d1d78a463a06bf091a799001edbfa530a34ff7df..552a53f1d5d026cebbbf4c541620556d9da09272 100644
(file)
--- 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_net
dev;
dev_hold(n->dev);
dev_put(dev);
}