net: introduce netdev_alloc_pcpu_stats() for drivers
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 13 Feb 2014 19:46:28 +0000 (11:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Feb 2014 20:49:55 +0000 (15:49 -0500)
commit1c213bd24ad04f4430031d20d740d7783162b099
treeeb42b8d216e89008065634185fd6a5fcce5ec4e9
parented1acc8cd8c22efa919da8d300bab646e01c2dce
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: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
19 files changed:
drivers/net/dummy.c
drivers/net/ethernet/marvell/mvneta.c
drivers/net/loopback.c
drivers/net/macvlan.c
drivers/net/nlmon.c
drivers/net/team/team.c
drivers/net/veth.c
drivers/net/vxlan.c
drivers/net/xen-netfront.c
include/linux/netdevice.h
net/8021q/vlan_dev.c
net/bridge/br_device.c
net/ipv4/ip_tunnel.c
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_vti.c
net/ipv6/sit.c
net/openvswitch/datapath.c
net/openvswitch/vport.c