]> asedeno.scripts.mit.edu Git - linux.git/commit
ipv6: icmp: use this_cpu_read() in icmpv6_sk()
authorEric Dumazet <edumazet@google.com>
Fri, 31 May 2019 22:27:00 +0000 (15:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 21:57:41 +0000 (14:57 -0700)
commit2789c14d198a4890f4c61ac5bf7cb02a14a6f99e
tree68a48826f214a7ecfba2ee4c2bfd05a7e1e0119f
parentfa85999f492e227b373c20db22acfa993d770e4b
ipv6: icmp: use this_cpu_read() in icmpv6_sk()

In general, this_cpu_read(*X) is faster than *this_cpu_ptr(X)

Also remove the inline attibute, totally useless.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/icmp.c