From: Marcus Sundberg <marcus@ingate.com>
To: Martin Josefsson <gandalf@wlug.westbo.se>
Cc: Netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH] ip_ct_refresh_optimization.patch
Date: 14 Sep 2002 14:52:50 +0200 [thread overview]
Message-ID: <velm64u40t.fsf@inigo.ingate.se> (raw)
In-Reply-To: <1031835954.28101.82.camel@tux>
Martin Josefsson <gandalf@wlug.westbo.se> writes:
> Yes I know it's broken, I do have a newer version but I havn't committed
> it to cvs. I think Patrick Shaaf's solution is a better one and we
> should probably go with something like that.
Probably yes, but that's no reason to have a completely broken patch
which can be fixed by a one-liner in CVS. It should IMHO either be
fixed or removed asap.
> you can find a few optimisation and other patches over at
> http://www.netfilter.org/~gandalf/
>
> timer-update2-inc.diff is almost like your patch. I'm using it right now
> and it seems to be working fine.
That patch is also incorrect, but it works because it updates to
often, not to seldom. If the new timeout is one jiffie earlier than
the previous timeout your expression will evaluate to 0xffffffff
and thus update the timer even though there's no need. The cast
is useless btw, because all operands, and thus the result also, are
already unsigned long.
//Marcus
--
---------------------------------------+--------------------------
Marcus Sundberg <marcus@ingate.com> | Firewalls with SIP & NAT
Firewall Developer, Ingate Systems AB | http://www.ingate.com/
next prev parent reply other threads:[~2002-09-14 12:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 8:41 [PATCH] ip_ct_refresh_optimization.patch Marcus Sundberg
2002-09-12 13:05 ` Martin Josefsson
2002-09-14 12:52 ` Marcus Sundberg [this message]
2002-09-14 13:34 ` Martin Josefsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=velm64u40t.fsf@inigo.ingate.se \
--to=marcus@ingate.com \
--cc=gandalf@wlug.westbo.se \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.