diff options
author | Paolo Abeni <pabeni@redhat.com> | 2019-05-03 17:01:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-05 19:38:04 +0200 |
commit | 0e219ae48c3bbf382ef96adf3825457315728c03 (patch) | |
tree | caab033dc6fe9c00528d6fc341d53b0b9ce368e5 /net/ipv6/tcp_ipv6.c | |
parent | net: use indirect calls helpers for ptype hook (diff) | |
download | linux-0e219ae48c3bbf382ef96adf3825457315728c03.tar.xz linux-0e219ae48c3bbf382ef96adf3825457315728c03.zip |
net: use indirect calls helpers for L3 handler hooks
So that we avoid another indirect call per RX packet in the common
case.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 82018bdce863..d58bf84e0f9a 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -43,6 +43,7 @@ #include <linux/ipv6.h> #include <linux/icmpv6.h> #include <linux/random.h> +#include <linux/indirect_call_wrapper.h> #include <net/tcp.h> #include <net/ndisc.h> @@ -1435,7 +1436,7 @@ static void tcp_v6_fill_cb(struct sk_buff *skb, const struct ipv6hdr *hdr, skb->tstamp || skb_hwtstamps(skb)->hwtstamp; } -static int tcp_v6_rcv(struct sk_buff *skb) +INDIRECT_CALLABLE_SCOPE int tcp_v6_rcv(struct sk_buff *skb) { struct sk_buff *skb_to_free; int sdif = inet6_sdif(skb); |