linux/net
WANG Cong 698365fa18 net: clean up snmp stats code
commit 8f0ea0fe3a (snmp: reduce percpu needs by 50%)
reduced snmp array size to 1, so technically it doesn't have to be
an array any more. What's more, after the following commit:

	commit 933393f58f
	Date:   Thu Dec 22 11:58:51 2011 -0600

	    percpu: Remove irqsafe_cpu_xxx variants

	    We simply say that regular this_cpu use must be safe regardless of
	    preemption and interrupt state.  That has no material change for x86
	    and s390 implementations of this_cpu operations.  However, arches that
	    do not provide their own implementation for this_cpu operations will
	    now get code generated that disables interrupts instead of preemption.

probably no arch wants to have SNMP_ARRAY_SZ == 2. At least after
almost 3 years, no one complains.

So, just convert the array to a single pointer and remove snmp_mib_init()
and snmp_mib_free() as well.

Cc: Christoph Lameter <cl@linux.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
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>
2014-05-07 16:06:05 -04:00
..
9p
802
8021q vlan: unnecessary to check if vlan_pcpu_stats is NULL 2014-04-22 21:27:57 -04:00
appletalk
atm
ax25
batman-adv
bluetooth Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next 2014-04-30 11:56:43 -04:00
bridge
caif
can
ceph
core unregister_netdevice : move RTM_DELLINK to until after ndo_uninit 2014-05-05 13:11:36 -04:00
dcb
dccp net: clean up snmp stats code 2014-05-07 16:06:05 -04:00
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
ipv4 net: clean up snmp stats code 2014-05-07 16:06:05 -04:00
ipv6 net: clean up snmp stats code 2014-05-07 16:06:05 -04:00
ipx
irda
iucv
key
l2tp net: ipv6: Introduce ip6_sk_dst_hoplimit. 2014-04-30 13:31:26 -04:00
lapb
llc
mac80211 Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2014-04-30 12:04:27 -04:00
mac802154
mpls
netfilter netlink: have netlink per-protocol bind function return an error code. 2014-04-22 21:42:26 -04:00
netlabel
netlink netlink: implement unbind to netlink_setsockopt NETLINK_DROP_MEMBERSHIP 2014-04-22 21:42:26 -04:00
netrom
nfc
openvswitch vxlan: add x-netns support 2014-04-24 16:18:26 -04:00
packet
phonet
rds
rfkill
rose
rxrpc
sched net: Allow tc changes in user namespaces 2014-05-02 17:43:25 -04:00
sctp net: clean up snmp stats code 2014-05-07 16:06:05 -04:00
sunrpc
tipc tipc: purge signal handler infrastructure 2014-05-05 17:26:45 -04:00
unix
vmw_vsock
wimax
wireless cfg80211: Dynamic channel bandwidth changes in AP mode 2014-04-28 18:09:59 +02:00
x25
xfrm net: clean up snmp stats code 2014-05-07 16:06:05 -04:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c