Use the cpu alloc functions for the mib handling functions in the netWe also can avoid the use of two arrays when CONFIG_HAVE_CPU_OPS
layer. The API for snmp_mib_free() is changed to add a size parameter
since cpu_free() requires a size parameter.
Signed-off-by: Christoph Lameter <clameter@xxxxxxx>
---
include/net/ip.h | 2 +-
include/net/snmp.h | 32 ++++++++------------------------
net/dccp/proto.c | 2 +-
net/ipv4/af_inet.c | 31 +++++++++++++++++--------------
net/ipv6/addrconf.c | 11 ++++++-----
net/ipv6/af_inet6.c | 20 +++++++++++---------
net/sctp/protocol.c | 2 +-
net/xfrm/xfrm_proc.c | 4 ++--
8 files changed, 47 insertions(+), 57 deletions(-)