[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230404164050.1a2a5952@kernel.org>
Date: Tue, 4 Apr 2023 16:40:50 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Edward Cree <ecree.xilinx@...il.com>
Cc: edward.cree@....com, linux-net-drivers@....com,
davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
netdev@...r.kernel.org, habetsm.xilinx@...il.com,
sudheer.mogilappagari@...el.com
Subject: Re: [RFC PATCH net-next 2/6] net: ethtool: record custom RSS
contexts in the IDR
On Tue, 4 Apr 2023 12:49:18 +0100 Edward Cree wrote:
> > GFP_USER? Do you mean it for accounting? GFP_KERNEL_ACCOUNT?
>
> It's an allocation triggerable by userland; I was under the
> impression that those were supposed to use GFP_USER for some
> reason; the rss_config alloc further up this function does.
That's what I thought, too, and that it implies memory accounting.
But then someone from MM told me that that's not the case, and
that GFP_USER is supposed to be mmap()able. Or maybe the latter
part I got from the kdoc in gfp_types.h.
I think we should make sure the memory is accounted.
Powered by blists - more mailing lists