]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Reduce cache miss in xfrm_statistics_seq_show
authorJia He <hejianet@gmail.com>
Fri, 30 Sep 2016 03:29:02 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2016 05:50:45 +0000 (01:50 -0400)
commit27e2a7afd1ab3375cae9b25c71c830e3a936f01d
treea6b3008f9c31c048ab595ef39db5929ffb294d9c
parent5302cfcc58c5ee13ff5a520b3855552465f49426
proc: Reduce cache miss in xfrm_statistics_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/xfrm/xfrm_proc.c