Netdev List
 help / color / mirror / Atom feed
* [PATCH] net: page_pool: Drop fast and slow from the params kernel-doc
@ 2026-11-25 18:46 TAKANO Mitsuhiro
  2026-11-25 23:17 ` Joe Damato
  0 siblings, 1 reply; 2+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-25 18:46 UTC (permalink / raw)
  To: Jesper Dangaard Brouer, Ilias Apalodimas, netdev
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	linux-kernel, TAKANO Mitsuhiro

struct page_pool_params groups its members with struct_group_tagged(),
so fast and slow are group names, not members.  kernel-doc does not
expand the group, and reports both as excess:

  Warning: include/net/page_pool/types.h:105 Excess struct member 'fast'
  description in 'page_pool_params' (did you mean one of: 'flags',
  'offset')
  Warning: include/net/page_pool/types.h:105 Excess struct member 'slow'
  description in 'page_pool_params'

Each one is reported twice.  Drop the two @-lines and say in the
description which members are read on the hotpath, where a reader of
the rendered page looks for it.

Verification: kernel-doc -none include/net/page_pool/types.h prints the
four warnings before the change and nothing after it.

Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
 include/net/page_pool/types.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/net/page_pool/types.h b/include/net/page_pool/types.h
index 6d543076a0c0..5306e34105eb 100644
--- a/include/net/page_pool/types.h
+++ b/include/net/page_pool/types.h
@@ -69,7 +69,10 @@ struct pp_alloc_cache {
 
 /**
  * struct page_pool_params - page pool parameters
- * @fast:	params accessed frequently on hotpath
+ *
+ * The members in the fast group are read on the hotpath; the ones in the
+ * slow group are read during initialization and by Netlink only.
+ *
  * @order:	2^order pages on allocation
  * @pool_size:	size of the ptr_ring
  * @nid:	NUMA node id to allocate from pages from
@@ -78,7 +81,6 @@ struct pp_alloc_cache {
  * @dma_dir:	DMA mapping direction
  * @max_len:	max DMA sync memory size for PP_FLAG_DMA_SYNC_DEV
  * @offset:	DMA sync address offset for PP_FLAG_DMA_SYNC_DEV
- * @slow:	params with slowpath access only (initialization and Netlink)
  * @netdev:	netdev this pool will serve (leave as NULL if none or multiple)
  * @queue_idx:	queue idx this page_pool is being created for.
  * @flags:	PP_FLAG_DMA_MAP, PP_FLAG_DMA_SYNC_DEV, PP_FLAG_SYSTEM_POOL,

base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: page_pool: Drop fast and slow from the params kernel-doc
  2026-11-25 18:46 [PATCH] net: page_pool: Drop fast and slow from the params kernel-doc TAKANO Mitsuhiro
@ 2026-11-25 23:17 ` Joe Damato
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Damato @ 2026-11-25 23:17 UTC (permalink / raw)
  To: TAKANO Mitsuhiro
  Cc: Jesper Dangaard Brouer, Ilias Apalodimas, netdev, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, linux-kernel

On Wed, Nov 25, 2026 at 06:46:40PM +0000, TAKANO Mitsuhiro wrote:
> struct page_pool_params groups its members with struct_group_tagged(),
> so fast and slow are group names, not members.  kernel-doc does not
> expand the group, and reports both as excess:
> 
>   Warning: include/net/page_pool/types.h:105 Excess struct member 'fast'
>   description in 'page_pool_params' (did you mean one of: 'flags',
>   'offset')
>   Warning: include/net/page_pool/types.h:105 Excess struct member 'slow'
>   description in 'page_pool_params'
> 
> Each one is reported twice.  Drop the two @-lines and say in the
> description which members are read on the hotpath, where a reader of
> the rendered page looks for it.
> 
> Verification: kernel-doc -none include/net/page_pool/types.h prints the
> four warnings before the change and nothing after it.
> 
> Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
> ---
>  include/net/page_pool/types.h | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Not sure I fully understand all the docs tooling. Would this [1] solve the
problem? If so, it seems like it might be better to wait for that to land ?

[1]: https://lore.kernel.org/all/20260916214357.22573-1-emmaonana18@gmail.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-25 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 18:46 [PATCH] net: page_pool: Drop fast and slow from the params kernel-doc TAKANO Mitsuhiro
2026-11-25 23:17 ` Joe Damato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox