diff options
author | Martin Josefsson | 2006-11-29 02:35:12 +0100 |
---|---|---|
committer | David S. Miller | 2006-12-03 06:31:14 +0100 |
commit | be00c8e48993368663e2714bd1e7c886b7736406 (patch) | |
tree | e846325f0ae13b20b78fa711759b09600c8646df /net/netfilter/nf_conntrack_ftp.c | |
parent | [NETFILTER]: nf_conntrack: remove unused struct list_head from protocols (diff) | |
download | kernel-qcow2-linux-be00c8e48993368663e2714bd1e7c886b7736406.tar.gz kernel-qcow2-linux-be00c8e48993368663e2714bd1e7c886b7736406.tar.xz kernel-qcow2-linux-be00c8e48993368663e2714bd1e7c886b7736406.zip |
[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 <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/nf_conntrack_ftp.c')
0 files changed, 0 insertions, 0 deletions