net: Consolidate common blackhole dst ops
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 10 Mar 2021 00:38:09 +0000 (01:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 20:24:18 +0000 (12:24 -0800)
commitc4c877b2732466b4c63217baad05c96f775912c7
treeab4f6ec6d5a77c09566172855150d4968a88f113
parent05a59d79793d482f628a31753c671f2e92178a21
net: Consolidate common blackhole dst ops

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>
include/net/dst.h
net/core/dst.c
net/ipv4/route.c
net/ipv6/route.c