]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a6e2aacba3fb1bf1eb8810263b761a9c44aafd2
treeab4f6ec6d5a77c09566172855150d4968a88f113
parent50d67b9b8bcd4561d015e538069b53c8247ca46e
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