net: Consolidate common blackhole dst ops
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 10 Mar 2021 00:38:09 +0000 (01:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:32:05 +0000 (14:32 +0200)
commit0a245acbce8991668d5406f128f2c06a310c99a1
tree5644816705d5b1d989bf20072169fa6cbba3e287
parent33cd5f88b5bf01135e06d5d77aa6a59d899ce993
net: Consolidate common blackhole dst ops

[ Upstream commit c4c877b2732466b4c63217baad05c96f775912c7 ]

Move generic blackhole dst ops to the core and use them from both
ipv4_dst_blackhole_ops and ip6_dst_blackhole_ops where possible. No
functional change otherwise. We need these also in other locations
and having to define them over and over again is not great.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/dst.h
net/core/dst.c
net/ipv4/route.c
net/ipv6/route.c