Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by patchwork-bot+netdevbpf
Tue, 20 Oct 2026 10:10
Re: [PATCH net-next v3 0/6] net: unify symmetric netmem and page_pool refcounting
Author: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 10:10
Date: Tue, 20 Oct 2026 10:10
34 lines
9894 bytes
9894 bytes
Hello:
This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Wed, 14 Oct 2026 17:37:14 +0000 you wrote:
> netmems (pages and net_iovs) have two independent refcounts: a non-pp
> refcount (page._refcount or binding->ref) governing backing memory
> lifetime, and pp_ref_count governing recycling within a page_pool while
> page_pool holds a single backing non-pp reference. SKBs with
> pp_recycle=1 own pp_ref_count references on page_pool fragments; SKBs
> with pp_recycle=0 own non-pp references.
>
> [...]
Here is the summary with links:
- [net-next,v3,1/6] netmem: rename __get/__put_netmem() to get/put_net_iov()
https://git.kernel.org/netdev/net-next/c/a868720467d9
- [net-next,v3,2/6] net: skbuff: add napi_pp_get_page() and use it in tcp_recvmsg_dmabuf()
https://git.kernel.org/netdev/net-next/c/729a47b803b5
- [net-next,v3,3/6] net: skbuff: replace skb_page_unref() and __skb_frag_unref() with skb_netmem_unref()
https://git.kernel.org/netdev/net-next/c/4d688084070e
- [net-next,v3,4/6] net: skbuff: replace __skb_frag_ref() with symmetric skb_netmem_ref()
https://git.kernel.org/netdev/net-next/c/1f6f88105e1d
- [net-next,v3,5/6] net: skbuff: use skb_frag_ref() in skb_try_coalesce()
https://git.kernel.org/netdev/net-next/c/447f58db3505
- [net-next,v3,6/6] net: kunit: test netmem, page_pool, and skb frag refcounting
https://git.kernel.org/netdev/net-next/c/2285346afc99
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH net-next v3 0/6] net: unify symmetric netmem and page_pool refcounting
Author: Jakub Kicinski
Date: Tue, 20 Oct 2026 22:03
Date: Tue, 20 Oct 2026 22:03
10 lines
8672 bytes
8672 bytes
On Tue, 20 Oct 2026 09:23:03 -0700 Mina Almasry wrote: > This is awesome. For years the skb refcounting annoyed the hell out of > me. I couldn't fix it on my own; there were too many edge cases I > didn't thoroughly understand and could break. LLMs made this possible. > Thanks! You should have followed more modern naming patterns tho get_netmem() is pretty bad IMO. PP naming is object_action() so netmem_ref() or netmem_inc_ref() would be better, no?
Re: [PATCH net-next v3 0/6] net: unify symmetric netmem and page_pool refcounting
Author: Jakub Kicinski
Date: Tue, 20 Oct 2026 22:13
Date: Tue, 20 Oct 2026 22:13
21 lines
9357 bytes
9357 bytes
On Tue, 20 Oct 2026 15:10:03 -0700 Mina Almasry wrote: > > You should have followed more modern naming patterns tho > > get_netmem() is pretty bad IMO. PP naming is object_action() > > so netmem_ref() or netmem_inc_ref() would be better, no? > > Ah, I didn't know about the modern naming. I made get_netmem mirror > get_page. I now notice it's folio_get not get_folio. I can follow up > with a cleanup when net-next reopens. I assume that will not be a lot > of code churn. I was also going to try to look into deleting and > consolidating some of the now-redundant ref-ing functions anyway. If you do it soon I think we can try to squeeze it into this merge window to avoid unnecessary burden for backports. > I can also make it one of the design pricnciple in the page_pool docs > so that the LLMs pick up good naming practices moving forward. I don't think it's needed. I mean, if at all we should perhaps think about naming guidelines for all of netdev, but no time for that right now..
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