Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 */