summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2019-07-02 00:38:57 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-02 05:34:46 +0300
commit8d7017fd621d02ff0d47d19484350c2356828483 (patch)
tree50a9602573c42c05fda4e01447f06483ccf7b68a /net/ipv6
parent4de83b88c66a1e4dba426b29766fb68e61d93792 (diff)
downloadlinux-8d7017fd621d02ff0d47d19484350c2356828483.tar.xz
blackhole_netdev: use blackhole_netdev to invalidate dst entries
Use blackhole_netdev instead of 'lo' device with lower MTU when marking dst "dead". Signed-off-by: Mahesh Bandewar <maheshb@google.com> Tested-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 7556275b1cef..39361f57351a 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -176,7 +176,7 @@ static void rt6_uncached_list_flush_dev(struct net *net, struct net_device *dev)
}
if (rt_dev == dev) {
- rt->dst.dev = loopback_dev;
+ rt->dst.dev = blackhole_netdev;
dev_hold(rt->dst.dev);
dev_put(rt_dev);
}