netfilter: ipv6: avoid indirect calls for IPV6=y case
authorFlorian Westphal <fw@strlen.de>
Sat, 2 Feb 2019 09:17:00 +0000 (10:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Feb 2019 17:21:12 +0000 (18:21 +0100)
commitac02bcf9cc1e4aefb0a7156a2ae26e8396b15f24
treef18ef2303361b54f638b972bbef707018b7a346d
parent960587285a56ec3cafb4d1e6b25c19eced4d0bce
netfilter: ipv6: avoid indirect calls for IPV6=y case

indirect calls are only needed if ipv6 is a module.
Add helpers to abstract the v6ops indirections and use them instead.

fragment, reroute and route_input are kept as indirect calls.
The first two are not not used in hot path and route_input is only
used by bridge netfilter.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_ipv6.h
net/ipv6/netfilter.c
net/ipv6/netfilter/nft_fib_ipv6.c
net/netfilter/utils.c
net/netfilter/xt_addrtype.c