[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5effd41a-81c3-4815-826d-ba5d8f6c69b4@intel.com>
Date: Mon, 22 May 2023 15:48:53 +0200
From: Alexander Lobakin <aleksander.lobakin@...el.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: Jesper Dangaard Brouer <hawk@...nel.org>, Larysa Zaremba
<larysa.zaremba@...el.com>, <netdev@...r.kernel.org>, Ilias Apalodimas
<ilias.apalodimas@...aro.org>, <linux-kernel@...r.kernel.org>, "David S.
Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, "Michal
Kubiak" <michal.kubiak@...el.com>, <intel-wired-lan@...ts.osuosl.org>, "Paolo
Abeni" <pabeni@...hat.com>, Christoph Hellwig <hch@....de>, Magnus Karlsson
<magnus.karlsson@...el.com>
Subject: Re: [Intel-wired-lan] [PATCH net-next 07/11] net: page_pool: add
DMA-sync-for-CPU inline helpers
From: Jakub Kicinski <kuba@...nel.org>
Date: Fri, 19 May 2023 13:45:45 -0700
> On Fri, 19 May 2023 15:56:40 +0200 Alexander Lobakin wrote:
>> From: Jakub Kicinski <kuba@...nel.org>
>> Date: Thu, 18 May 2023 13:36:27 -0700
[...]
> Ack, not saying that we need to split now, it's just about the naming
> (everyone's favorite topic).
>
> I think that it's a touch weird to name the header _drv.h and then
> include it in the core in multiple places (*cough* xdp_sock_drv.h).
Hahaha, I also thought of it :>
> Also If someone needs to add another "heavy" static line for use by
> the core they will try to put it in page_pool.h rather than _drv.h...
>
> I'd rather split the includes by the basic language-level contents,
> first, then by the intended consumer, only if necessary. Language
> level sorting require less thinking :)
>
> But none of this is important, if you don't wanna to do it, just keep
> the new helpers in page_pool.h (let's not do another _drv.h).
Ack, will just put there. It doesn't get included by the whole kernel
via skbuff.h anymore (in v2), so new inlines won't hurt.
Thanks,
Olek
Powered by blists - more mailing lists