[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210108115455.GC19605@breakpoint.cc>
Date: Fri, 8 Jan 2021 12:54:55 +0100
From: Florian Westphal <fw@...len.de>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
netfilter-devel@...r.kernel.org, Florian Westphal <fw@...len.de>,
netdev@...r.kernel.org
Subject: Re: [PATCH net] netfilter: conntrack: fix reading
nf_conntrack_buckets
Jesper Dangaard Brouer <brouer@...hat.com> wrote:
> The old way of changing the conntrack hashsize runtime was through changing
> the module param via file /sys/module/nf_conntrack/parameters/hashsize. This
> was extended to sysctl change in commit 3183ab8997a4 ("netfilter: conntrack:
> allow increasing bucket size via sysctl too").
>
> The commit introduced second "user" variable nf_conntrack_htable_size_user
> which shadow actual variable nf_conntrack_htable_size. When hashsize is
> changed via module param this "user" variable isn't updated. This results in
> sysctl net/netfilter/nf_conntrack_buckets shows the wrong value when users
> update via the old way.
Oh, right!
Acked-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists