ipvs: use indirect call wrappers
authorMatteo Croce <mcroce@redhat.com>
Sat, 19 Jan 2019 14:25:35 +0000 (15:25 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Jan 2019 10:15:58 +0000 (11:15 +0100)
commit6ecd754883daffd14e1ecfc1e56aa3c070bb7a60
tree79dadd0f68ae03f49813ca8ae8832ed7cba5c7e6
parentfe19a8fea7cb59f202ddd30ec2fa9f5bd907b3d2
ipvs: use indirect call wrappers

Use the new indirect call wrappers in IPVS when calling the TCP or UDP
protocol specific functions.
This avoids an indirect calls in IPVS, and reduces the performance
impact of the Spectre mitigation.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/ipvs/ip_vs_proto_tcp.c
net/netfilter/ipvs/ip_vs_proto_udp.c