diff options
author | Paolo Abeni <pabeni@redhat.com> | 2019-05-03 17:01:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-05 19:38:04 +0200 |
commit | 97ff7ffb11fe7a859a490771e7ce23f1f335176b (patch) | |
tree | 0b6bcf8f028ecbe20eafab86c08ef06150f02c15 /net/ipv6/udp.c | |
parent | net: use indirect calls helpers for L3 handler hooks (diff) | |
download | linux-97ff7ffb11fe7a859a490771e7ce23f1f335176b.tar.xz linux-97ff7ffb11fe7a859a490771e7ce23f1f335176b.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index b3fcafaf5576..07fa579dfb96 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -981,7 +981,7 @@ static struct sock *__udp6_lib_demux_lookup(struct net *net, return NULL; } -static void udp_v6_early_demux(struct sk_buff *skb) +INDIRECT_CALLABLE_SCOPE void udp_v6_early_demux(struct sk_buff *skb) { struct net *net = dev_net(skb->dev); const struct udphdr *uh; |