proc: Reduce cache miss in sctp_snmp_seq_show
authorJia He <hejianet@gmail.com>
Fri, 30 Sep 2016 03:29:01 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2016 05:50:44 +0000 (01:50 -0400)
commit7d64a94be2f9fadb1dd95742650f1fdbac69f25b
treeb3068f0c5f31adc9e33b814fad056400e74e98df
parent4a4857b1c81ef39a9dc719af6b498cd39d1c1eb0
proc: Reduce cache miss in sctp_snmp_seq_show

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 <hejianet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/proc.c