[PATCH v5 3/7] proc: Reduce cache miss in snmp6_seq_show

2016-09-28 Thread Jia He
This is to use the generic interfaces snmp_get_cpu_field{,64}_batch to aggregate the data by going through all the items of each cpu sequentially. Signed-off-by: Jia He --- net/ipv6/proc.c | 32 +++- 1 file changed, 23 insertions(+), 9

[PATCH v5 3/7] proc: Reduce cache miss in snmp6_seq_show

2016-09-28 Thread Jia He
This is to use the generic interfaces snmp_get_cpu_field{,64}_batch to aggregate the data by going through all the items of each cpu sequentially. Signed-off-by: Jia He --- net/ipv6/proc.c | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git