From: Martin Josefsson Date: Wed, 29 Nov 2006 01:35:12 +0000 (+0100) Subject: [NETFILTER]: nf_conntrack: reduce timer updates in __nf_ct_refresh_acct() X-Git-Tag: v2.6.20-rc1~34^2~40^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be00c8e48993368663e2714bd1e7c886b7736406;p=pandora-kernel.git [NETFILTER]: nf_conntrack: reduce timer updates in __nf_ct_refresh_acct() Only update the conntrack timer if there's been at least HZ jiffies since the last update. Reduces the number of del_timer/add_timer cycles from one per packet to one per connection per second (plus once for each state change of a connection) Should handle timer wraparounds and connection timeout changes. Signed-off-by: Martin Josefsson Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed