All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@lists.netfilter.org, Krzysztof Oledzki <olenf@ans.pl>
Subject: Re: connbytes & 64bit counters
Date: Fri, 24 Nov 2006 10:09:10 +0100	[thread overview]
Message-ID: <4566B6B6.4060808@trash.net> (raw)
In-Reply-To: <45660CD5.1090405@netfilter.org>

Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
> 
>>> What is wrong in sending 64 bit counters to userspace if we already have
>>> 64 bit counters in kernel?
>>
>>
>> Nothing - but changing the API based on config options is bad design.
>> I am fine with sending 64 bit unconditionally. But you need to make
>> sure you don't send (32 bit) overflow events to userspace anymore.
> 
> 
> They could be used to notify 64 bits overflow events. Userspace can
> differenciate if the kernel is using 32 or 64 bits and interpret the
> overflow event appropiately.


Mhh .. even with 100gbit it will take about 50 years to overflow.
I don't think we really need this.

> Hm, why not default on 64 bits counters but still give the choice to
> select 32 bits at compilation time? Some advanced users could still want
> to compile 32 bits to save some memory (perhaps embedded stuff guys), so
> I have the impression that this issue will be revisited sooner or later.
> I can give a hand to Krzysztof and improve the patch to make it look
> cleaner, although we will still need some ifdef's. Still not convinced?


Config options for things like this are silly in my opinion, if we
really want to save memory these counters should be selectable at
runtime, most people don't need them, but distributions will probably
enable them anyway (if not already then once programs using them
appear). And people using them don't save anything, they have to
keep copies in userspace to handle overflows, which needs even more
memory.

Given that their use of the 32 bit counters in libnetfilter_conntrack
is broken anyway (incorrect byte order conversion) I think we should
just get rid of them.

  reply	other threads:[~2006-11-24  9:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-24 22:53 connbytes & 64bit counters Krzysztof Oledzki
2006-10-25 22:20 ` Patrick McHardy
2006-10-28 16:48   ` Krzysztof Oledzki
2006-10-30 12:01     ` Amin Azez
2006-10-30 15:54     ` Patrick McHardy
2006-10-30 20:01       ` Krzysztof Oledzki
2006-11-23 14:05         ` Patrick McHardy
2006-11-23 21:04           ` Pablo Neira Ayuso
2006-11-24  9:09             ` Patrick McHardy [this message]
2006-12-25  1:59               ` Krzysztof Oledzki
2007-01-10 13:36                 ` Patrick McHardy
2007-01-15 10:45                   ` Krzysztof Oledzki
2007-01-15 14:37                     ` Patrick McHardy
2007-07-20 22:13                       ` Krzysztof Oledzki
2007-07-20 22:42                         ` Krzysztof Oledzki
2007-07-21  4:18                           ` Patrick McHardy
2007-07-21 16:38                             ` Jan Engelhardt
2007-07-23  2:27                             ` Yasuyuki KOZAKAI
     [not found]                             ` <200707230227.l6N2R1hs010163@toshiba.co.jp>
2007-08-06 11:30                               ` Krzysztof Oledzki
2007-08-29 11:31                                 ` Krzysztof Oledzki
2006-11-01 15:08       ` Amin Azez

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=4566B6B6.4060808@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=olenf@ans.pl \
    --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.