* [PATCH net] page_pool: fix &page_pool_params kdoc issues
@ 2024-05-24 11:28 Alexander Lobakin
2024-05-28 0:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Lobakin @ 2024-05-24 11:28 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: Alexander Lobakin, Jesper Dangaard Brouer, Ilias Apalodimas,
nex.sw.ncis.osdt.itp.upstreaming, netdev, linux-kernel
After the tagged commit, @netdev got documented twice and the kdoc
script didn't notice that. Remove the second description added later
and move the initial one according to the field position.
After merging commit 5f8e4007c10d ("kernel-doc: fix
struct_group_tagged() parsing"), kdoc requires to describe struct
groups as well. &page_pool_params has 2 struct groups which
generated new warnings, describe them to resolve this.
Fixes: 403f11ac9ab7 ("page_pool: don't use driver-set flags field directly")
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
---
include/net/page_pool/types.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/net/page_pool/types.h b/include/net/page_pool/types.h
index b088d131aeb0..7e8477057f3d 100644
--- a/include/net/page_pool/types.h
+++ b/include/net/page_pool/types.h
@@ -45,16 +45,17 @@ struct pp_alloc_cache {
/**
* struct page_pool_params - page pool parameters
+ * @fast: params accessed frequently on hotpath
* @order: 2^order pages on allocation
* @pool_size: size of the ptr_ring
* @nid: NUMA node id to allocate from pages from
* @dev: device, for DMA pre-mapping purposes
- * @netdev: netdev this pool will serve (leave as NULL if none or multiple)
* @napi: NAPI which is the sole consumer of pages, otherwise NULL
* @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
- * @netdev: corresponding &net_device for Netlink introspection
+ * @slow: params with slowpath access only (initialization and Netlink)
+ * @netdev: netdev this pool will serve (leave as NULL if none or multiple)
* @flags: PP_FLAG_DMA_MAP, PP_FLAG_DMA_SYNC_DEV, PP_FLAG_SYSTEM_POOL
*/
struct page_pool_params {
--
2.45.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net] page_pool: fix &page_pool_params kdoc issues
2024-05-24 11:28 [PATCH net] page_pool: fix &page_pool_params kdoc issues Alexander Lobakin
@ 2024-05-28 0:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-28 0:20 UTC (permalink / raw)
To: Alexander Lobakin
Cc: davem, edumazet, kuba, pabeni, hawk, ilias.apalodimas,
nex.sw.ncis.osdt.itp.upstreaming, netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 24 May 2024 13:28:59 +0200 you wrote:
> After the tagged commit, @netdev got documented twice and the kdoc
> script didn't notice that. Remove the second description added later
> and move the initial one according to the field position.
>
> After merging commit 5f8e4007c10d ("kernel-doc: fix
> struct_group_tagged() parsing"), kdoc requires to describe struct
> groups as well. &page_pool_params has 2 struct groups which
> generated new warnings, describe them to resolve this.
>
> [...]
Here is the summary with links:
- [net] page_pool: fix &page_pool_params kdoc issues
https://git.kernel.org/netdev/net/c/266aa3b4812e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-28 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24 11:28 [PATCH net] page_pool: fix &page_pool_params kdoc issues Alexander Lobakin
2024-05-28 0:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox