projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be162d6
)
[NETNS]: DST cleanup routines should be called inside namespace.
author
Denis V. Lunev
<den@openvz.org>
Fri, 29 Feb 2008 04:49:44 +0000
(20:49 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Feb 2008 04:49:44 +0000
(20:49 -0800)
Device inside the namespace can be started and downed. So, active routing
cache should be cleaned up on device stop.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dst.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dst.c
b/net/core/dst.c
index 7deef483c79f263959c0c1dac148529ecc80d73c..3a01a819ba478112168e4a3c2db3b3ac023b8e67 100644
(file)
--- a/
net/core/dst.c
+++ b/
net/core/dst.c
@@
-295,9
+295,6
@@
static int dst_dev_event(struct notifier_block *this, unsigned long event, void
struct net_device *dev = ptr;
struct dst_entry *dst, *last = NULL;
- if (dev->nd_net != &init_net)
- return NOTIFY_DONE;
-
switch (event) {
case NETDEV_UNREGISTER:
case NETDEV_DOWN: