]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Reduce cache miss in snmp_seq_show
authorJia He <hejianet@gmail.com>
Fri, 30 Sep 2016 03:28:59 +0000 (11:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2016 05:50:44 +0000 (01:50 -0400)
commit933d96e40d8905e0e06350e0156c9622829615b1
tree4b24dc825b3765830bf03b5b3590c0e0dfe6fc37
parentb287de5ca47cc59e73819ca86c3378db2d57c1fb
proc: Reduce cache miss in 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.
Then snmp_seq_show is split into 2 parts to avoid build warning "the frame
size" larger than 1024.

Signed-off-by: Jia He <hejianet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/proc.c