All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nftables-kernel PATCH] netfilter: nf_tables: Fixes how a table is checked to be in use
Date: Tue, 03 Sep 2013 16:25:40 +0300	[thread overview]
Message-ID: <5225E354.4090000@linux.intel.com> (raw)
In-Reply-To: <20130830223705.GA9864@localhost>

Hi Pablo,

>> Let's check table's chain list emptyness instead so struct nft_table
>> does not grow and we avoid the (unlikely to happen) overflow.
> I prefer if you send me a patch to export the table use counter. I
> think it can be useful from userspace to know if the table is used at
> all and how many times it's used. I'm neither worry about the 2^32
> chains limit and the extra 4 bytes per table (we'll have a small
> number of tables object in memory).

What's the use case for it? I mean: knowing that the table is in use, I 
can see some use case (and it could be done much simpler).
The number of chains, not really. At least right now, nothing is using 
it so what could be the future need for that?
Same for chains actually.

Tomasz

  reply	other threads:[~2013-09-03 13:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30  9:43 [nftables-kernel PATCH] netfilter: nf_tables: Fixes how a table is checked to be in use Tomasz Bursztyka
2013-08-30 22:37 ` Pablo Neira Ayuso
2013-09-03 13:25   ` Tomasz Bursztyka [this message]
2013-09-04 10:48     ` Pablo Neira Ayuso
2013-09-04 11:51       ` Tomasz Bursztyka

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=5225E354.4090000@linux.intel.com \
    --to=tomasz.bursztyka@linux.intel.com \
    --cc=netfilter-devel@vger.kernel.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.