net: use indirect calls helpers at early demux stage

So that we avoid another indirect call per RX packet, if
early demux is enabled.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Paolo Abeni
2019-05-03 17:01:38 +02:00
committed by David S. Miller
parent 0e219ae48c
commit 97ff7ffb11
4 changed files with 10 additions and 4 deletions

View File

@@ -1655,7 +1655,7 @@ do_time_wait:
goto discard_it;
}
static void tcp_v6_early_demux(struct sk_buff *skb)
INDIRECT_CALLABLE_SCOPE void tcp_v6_early_demux(struct sk_buff *skb)
{
const struct ipv6hdr *hdr;
const struct tcphdr *th;