]> git.baikalelectronics.ru Git - kernel.git/commit
net:snmp: Introduce generic interfaces for snmp_get_cpu_field{, 64}
authorJia He <hejianet@gmail.com>
Fri, 30 Sep 2016 03:28:58 +0000 (11:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2016 05:50:44 +0000 (01:50 -0400)
commitc9f2cc314c0ed0442e9b5e73dc9c77aab6f85ad9
tree4ceef4c17cfc9396015caee36eef7222e81f188b
parent2a1cbe21a7f5c0a93dedbd4892cef3eeb8fe5124
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>
include/net/ip.h