From: Alexander Duyck Date: Wed, 31 Dec 2014 18:55:29 +0000 (-0800) Subject: fib_trie: Update usage stats to be percpu instead of global variables X-Git-Tag: fixes-v4.0-rc1~150^2~312^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8274a97aa4c694ad0d7b31b283a89dcca140e62b;p=pandora-kernel.git fib_trie: Update usage stats to be percpu instead of global variables The trie usage stats were currently being shared by all threads that were calling fib_table_lookup. As a result when multiple threads were performing lookups simultaneously the trie would begin to cache bounce between those threads. In order to prevent this I have updated the usage stats to use a set of percpu variables. By doing this we should be able to avoid the cache bouncing and still make use of these stats. Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- Reading git-diff-tree failed