Skip to content
Snippets Groups Projects
Commit 1c213bd2 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

net: introduce netdev_alloc_pcpu_stats() for drivers


There are many drivers calling alloc_percpu() to allocate pcpu stats
and then initializing ->syncp. So just introduce a helper function for them.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ed1acc8c
No related branches found
No related tags found
No related merge requests found
Showing with 35 additions and 154 deletions
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