[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250122095935.GC385045@kernel.org>
Date: Wed, 22 Jan 2025 09:59:35 +0000
From: Simon Horman <horms@...nel.org>
To: lirongqing <lirongqing@...du.com>
Cc: pablo@...filter.org, kadlec@...filter.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] net/netfilter: use kvfree_rcu to simplify the code
On Wed, Jan 22, 2025 at 03:44:50PM +0800, lirongqing wrote:
> From: Li RongQing <lirongqing@...du.com>
>
> The callback function of call_rcu() just calls kvfree(), so we can
> use kvfree_rcu() instead of call_rcu() + callback function.
>
> and move struct rcu_head into struct nf_hook_entries, then struct
> nf_hook_entries_rcu_head can be removed
>
> Signed-off-by: Li RongQing <lirongqing@...du.com>
Reviewed-by: Simon Horman <horms@...nel.org>
...
Powered by blists - more mailing lists