[RFC PATCH v3 4/7] proc: Reduce cache miss in sctp_snmp_seq_show

2016-09-09 Thread Jia He
This is to use the generic interface 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/sctp/proc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[RFC PATCH v3 4/7] proc: Reduce cache miss in sctp_snmp_seq_show

2016-09-09 Thread Jia He
This is to use the generic interface 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/sctp/proc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/sctp/proc.c