Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by TAKANO Mitsuhiro
Wed, 25 Nov 2026 18:46
[PATCH] net: page_pool: Drop fast and slow from the params kernel-doc
Author: TAKANO Mitsuhiro
Date: Wed, 25 Nov 2026 18:46
Date: Wed, 25 Nov 2026 18:46
51 lines
12705 bytes
12705 bytes
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
Re: [PATCH] net: page_pool: Drop fast and slow from the params kernel-doc
Author: Joe Damato
Date: Wed, 25 Nov 2026 23:17
Date: Wed, 25 Nov 2026 23:17
28 lines
12684 bytes
12684 bytes
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/
Re: [PATCH] net: page_pool: Drop fast and slow from the params kernel-doc
Author: TAKANO Mitsuhiro
Date: Thu, 26 Nov 2026 01:18
Date: Thu, 26 Nov 2026 01:18
11 lines
11076 bytes
11076 bytes
Hi Joe, yes, that series is the right fix and mine is the wrong one. The warning comes from struct_group_tagged() dropping the member names during the transformation, which is exactly what Omokefe's patch repairs by keeping the tag, so @fast and @slow become valid tags again and the paragraphs I proposed to delete are the right documentation for the members. Please drop mine; I will wait for that series and will not resend unless it stalls.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads