]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57b13f95eec7ae900b400f11e8a75168d380761d
treeeb42b8d216e89008065634185fd6a5fcce5ec4e9
parent3911444106e2d113a620a6ec71d652a9e05aed36
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