commit | 6348ef2dbbd96c4488a1ee83cc0f0f3d9a314a2f | [log] [tgz] |
---|---|---|
author | Jia He <hejianet@gmail.com> | Fri Sep 30 11:28:58 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 30 01:50:44 2016 -0400 |
tree | 4ceef4c17cfc9396015caee36eef7222e81f188b | |
parent | fa1403548daf3a2c8c988f89db1053df70200405 [diff] |
net:snmp: Introduce generic interfaces for snmp_get_cpu_field{, 64} This is to introduce the generic interfaces for snmp_get_cpu_field{,64}. It exchanges the two for-loops for collecting the percpu statistics data. This can aggregate the data by going through all the items of each cpu sequentially. Signed-off-by: Jia He <hejianet@gmail.com> Suggested-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>