]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ipv6: icmp6: avoid indirect call for icmpv6_send()
authorEric Dumazet <edumazet@google.com>
Fri, 19 Jun 2020 19:02:59 +0000 (12:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:57 +0000 (18:22 +0100)
commit8b779e11bc55616fc100d5cecf3c1d3c317c39e4
tree943a50b2c5b3371e238525a526d1e69e2c3345a8
parent86b9572a9629d284044a9b09b4aa2346b59d6f1b
ipv6: icmp6: avoid indirect call for icmpv6_send()

commit cc7a21b6fbd945f8d8f61422ccd27203c1fafeb7 upstream.

If IPv6 is builtin, we do not need an expensive indirect call
to reach icmp6_send().

v2: put inline keyword before the type to avoid sparse warnings.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/icmpv6.h
net/ipv6/icmp.c
net/ipv6/ip6_icmp.c