diff options
author | 2019-07-01 14:38:57 -0700 | |
---|---|---|
committer | 2019-07-01 19:34:46 -0700 | |
commit | 8d7017fd621d02ff0d47d19484350c2356828483 (patch) | |
tree | 50a9602573c42c05fda4e01447f06483ccf7b68a /net/core | |
parent | loopback: create blackhole net device similar to loopack. (diff) | |
download | linux-8d7017fd621d02ff0d47d19484350c2356828483.tar.gz linux-8d7017fd621d02ff0d47d19484350c2356828483.tar.bz2 linux-8d7017fd621d02ff0d47d19484350c2356828483.zip |
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/core')
-rw-r--r-- | net/core/dst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index e46366228eaf..1325316d9eab 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -160,7 +160,7 @@ void dst_dev_put(struct dst_entry *dst) dst->ops->ifdown(dst, dev, true); dst->input = dst_discard; dst->output = dst_discard_out; - dst->dev = dev_net(dst->dev)->loopback_dev; + dst->dev = blackhole_netdev; dev_hold(dst->dev); dev_put(dev); } |