mirror of https://lore.kernel.org/lkml/
 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
  0 siblings, 0 replies; only message 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	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25 18:46 UTC | newest]

Thread overview: (only message) (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

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

all inboxes | Powered by JetHome®