[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220222194605.GA28705@breakpoint.cc>
Date: Tue, 22 Feb 2022 20:46:05 +0100
From: Florian Westphal <fw@...len.de>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
Florian Westphal <fw@...len.de>,
netfilter-devel@...r.kernel.org, netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net] netfilter: nf_tables: prefer kfree_rcu(ptr, rcu)
variant
Eric Dumazet <eric.dumazet@...il.com> wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> While kfree_rcu(ptr) _is_ supported, it has some limitations.
>
> Given that 99.99% of kfree_rcu() users [1] use the legacy
> two parameters variant, and @catchall objects do have an rcu head,
> simply use it.
>
> Choice of kfree_rcu(ptr) variant was probably not intentional.
In case someone wondered, this causes expensive
sycnhronize_rcu + kfree for each removal operation.
Reviewed-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists