From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Harald Welte <laforge@netfilter.org>,
Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH 2/3][CTNETLINK] Atomically set/unset status bits
Date: Wed, 29 Nov 2006 16:28:39 +0100 [thread overview]
Message-ID: <456DA727.1050104@trash.net> (raw)
In-Reply-To: <456DA057.4090308@netfilter.org>
Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>
>>We already hold the lock, what is the purpose of this change?
>>
>>It also changes the API, so far bits can only be set. I wonder
>>where this comes from, I'm pretty sure my original code allowed
>>to unset specific bits and the checks at the top of that function
>>indicate that unsetting is possible as well.
>
>
> Just a minor digest on this issue:
>
> Leyend:
> U = unchangeable
> S = can be set
> C = can be cleared
I presume you mean theoretically - currently we can't clear anything.
>
> IPS_EXPECTED U
> IPS_SEEN_REPLY S
> IPS_ASSURED S
> IPS_CONFIRMED U
> IPS_NAT_MASK U
> IPS_SEQ_ADJUST U
> IPS_NAT_DONE_MASK U
> IPS_DYING U
> IPS_FIXED_TIMEOUT S,C
> IPS_PICKUP S,C
> IPS_IN_WINDOW S,C
>
> You are right, the lock is enough for most of them, actually my concern
> is the new IPS_PICKUP that can be cleared by the TCP tracking code once
> the pickup happens, such code is called outside the lock in proto->packet().
Shouldn't that be fixed by taking the lock there instead? The iteration
over all 64 bits is quite inefficient compared to the simple assignment
we have currently.
> BTW, I just noticed that there are not checkings for SEQ_ADJUST, should
> we add one?
We do need to be able to set the SEQ_ADJUST bit, don't we? And the
related offsets of course.
next prev parent reply other threads:[~2006-11-29 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 17:46 [PATCH 2/3][CTNETLINK] Atomically set/unset status bits Pablo Neira Ayuso
2006-11-28 18:31 ` Pablo Neira Ayuso
2006-11-28 22:31 ` Patrick McHardy
2006-11-29 14:59 ` Pablo Neira Ayuso
2006-11-29 15:28 ` Patrick McHardy [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-28 17:09 Pablo Neira Ayuso
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=456DA727.1050104@trash.net \
--to=kaber@trash.net \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
--cc=pablo@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.