[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YkwS2F0ZrE73KONJ@salvia>
Date: Tue, 5 Apr 2022 11:58:48 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Vasily Averin <vasily.averin@...ux.dev>
Cc: Florian Westphal <fw@...len.de>, kernel@...nvz.org,
Jozsef Kadlecsik <kadlec@...filter.org>,
netfilter-devel@...r.kernel.org, linux-kernel@...r.kernel.org,
Roman Gushchin <roman.gushchin@...ux.dev>
Subject: Re: [PATCH v2] nft: memcg accounting for dynamically allocated
objects
On Sat, Apr 02, 2022 at 12:50:37PM +0300, Vasily Averin wrote:
> nft_*.c files whose NFT_EXPR_STATEFUL flag is set on need to
> use __GFP_ACCOUNT flag for objects that are dynamically
> allocated from the packet path.
>
> Such objects are allocated inside nft_expr_ops->init() callbacks
> executed in task context while processing netlink messages.
>
> In addition, this patch adds accounting to nft_set_elem_expr_clone()
> used for the same purposes.
Applied to nf, thanks
Powered by blists - more mailing lists