summaryrefslogtreecommitdiffstats
path: root/net/core/dst.c
diff options
context:
space:
mode:
authorWei Wang2017-06-17 19:42:26 +0200
committerDavid S. Miller2017-06-18 04:53:59 +0200
commit1dbe32525e26ec28d2cc17f65a90fc7b53f1f8d0 (patch)
treec8de21d5e5503a6cf665c658b012c6d28c1345dc /net/core/dst.c
parentudp: call dst_hold_safe() in udp_sk_rx_set_dst() (diff)
downloadkernel-qcow2-linux-1dbe32525e26ec28d2cc17f65a90fc7b53f1f8d0.tar.gz
kernel-qcow2-linux-1dbe32525e26ec28d2cc17f65a90fc7b53f1f8d0.tar.xz
kernel-qcow2-linux-1dbe32525e26ec28d2cc17f65a90fc7b53f1f8d0.zip
net: use loopback dev when generating blackhole route
Existing ipv4/6_blackhole_route() code generates a blackhole route with dst->dev pointing to the passed in dst->dev. It is not necessary to hold reference to the passed in dst->dev because the packets going through this route are dropped anyway. A loopback interface is good enough so that we don't need to worry about releasing this dst->dev when this dev is going down. Signed-off-by: Wei Wang <weiwan@google.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dst.c')
0 files changed, 0 insertions, 0 deletions