From: Eric Dumazet Date: Mon, 18 Jul 2011 14:08:27 +0000 (+0200) Subject: netfilter: nfnetlink_queue: provide rcu enabled callbacks X-Git-Tag: v3.1-rc1~316^2~70^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84a797dd0b9f7130357b70577fcbda8e638c71a7;p=pandora-kernel.git netfilter: nfnetlink_queue: provide rcu enabled callbacks nenetlink_queue operations on SMP are not efficent if several queues are used, because of nfnl_mutex contention when applications give packet verdict. Use new call_rcu field in struct nfnl_callback to advertize a callback that is called under rcu_read_lock instead of nfnl_mutex. On my 2x4x2 machine, I was able to reach 2.000.000 pps going through user land returning NF_ACCEPT verdicts without losses, instead of less than 500.000 pps before patch. Signed-off-by: Eric Dumazet CC: Florian Westphal CC: Eric Leblond Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed