All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Krzysztof Oledzki <ole@ans.pl>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH 2/2] Netfilter: Accounting rework: ct_extend + 64bit counters (v3)
Date: Tue, 24 Jun 2008 18:45:52 +0200	[thread overview]
Message-ID: <486124C0.5070104@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0806241804340.24680@bizon.gios.gov.pl>

Krzysztof Oledzki wrote:
> 
> 
> On Tue, 24 Jun 2008, Patrick McHardy wrote:
> 
>> A few minor nits - a patch on top to fix them is fine, I'll
>> just fold them together.
> 
> I prefer to send a new patch if that is OK for you.

Sure.

>>> +static inline
>>> +struct ip_conntrack_counter *nf_conn_acct_find(const struct nf_conn 
>>> *ct)
>>> +{
>>> +    return nf_ct_ext_find(ct, NF_CT_EXT_ACCT);
>>> +}
>>> +
>>> +struct ip_conntrack_counter *nf_ct_acct_ext_add(struct nf_conn *ct, 
>>> gfp_t gfp);
>>> +
>> Also using ip_conntrack in the
>> struct name doesn't make much sense, please use nf_conntrack as prefix.
>> Or maybe for consistency with the other extensions, nf_conn.
> 
> Fine, I'll rename it to nf_conn_counter. Please note that the 
> ip_conntrack_counter comes from nf_conntrack_common.h and is already 
> used in several places. Isn't it a pointless rename?

I wasn't aware of that. Its a rename, but not pointless IMO :)
We can also do the rename later, but I only count three occurences
so far, so it seems easier to do it now.

>>> +#ifdef CONFIG_NF_CT_ACCT
>>> +    printk(KERN_WARNING "CONFIG_NF_CT_ACCT is deprecated and will be 
>>> removed soon. Plase use\n");
>>> +    printk(KERN_WARNING "nf_conntrack.acct=1 kernel paramater, 
>>> acct=1 nf_conntrack module option or\n");
>>> +    printk(KERN_WARNING "sysctl net.netfilter.nf_conntrack_acct=1 to 
>>> enable it.\n");
>>
>> Since sysctls are deprecated (or are they still?), better to just
>> mention the kernel and module options.
> 
> No, sysctls are not deprecated and allow to enable/disable accouting at 
> runtime - kernel/module options allow to enable/disable accouting at 
> boot time. We only deprecate CONFIG_NF_CT_ACCT.

sysctls using the sysctl() syscall are deprecated if I'm
not mistaken. sysfs also allows to change module parameters
at runtime, but sure, keep it, it will be gone soon enough.

Thanks.

  reply	other threads:[~2008-06-24 16:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 11:00 [PATCH 2/2] Netfilter: Accounting rework: ct_extend + 64bit counters (v3) Krzysztof Piotr Oledzki
2008-06-24 15:38 ` Patrick McHardy
2008-06-24 16:37   ` Krzysztof Oledzki
2008-06-24 16:45     ` Patrick McHardy [this message]
2008-06-24 16:50       ` Jan Engelhardt
2008-06-24 17:13         ` Krzysztof Oledzki
2008-06-28  9:09           ` Jan Engelhardt
2008-06-30 15:59             ` Patrick McHardy
2008-07-02 13:03     ` Krzysztof Oledzki
2008-07-02 13:07       ` Patrick McHardy
2008-07-02 13:20         ` Krzysztof Oledzki
2008-07-02 13:21           ` Patrick McHardy
2008-07-02 13:36             ` Krzysztof Oledzki
2008-07-02 13:40               ` Patrick McHardy
2008-07-02 13:46                 ` Krzysztof Oledzki
2008-07-02 13:51                   ` Patrick McHardy
2008-07-02 13:57                     ` Jan Engelhardt
2008-07-02 14:02                       ` Patrick McHardy

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=486124C0.5070104@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=ole@ans.pl \
    /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.