Commit 046386ca authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipv4: icmp: use this_cpu_read() in icmp_sk()

this_cpu_read(*X) is faster than *this_cpu_ptr(X)
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c353071a
...@@ -206,7 +206,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES+1]; ...@@ -206,7 +206,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES+1];
*/ */
static struct sock *icmp_sk(struct net *net) static struct sock *icmp_sk(struct net *net)
{ {
return *this_cpu_ptr(net->ipv4.icmp_sk); return this_cpu_read(*net->ipv4.icmp_sk);
} }
/* Called with BH disabled */ /* Called with BH disabled */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment