From: sashiko-bot@kernel.org
To: "Mina Almasry" <almasrymina@google.com>
Cc: virtualization@lists.linux.dev, linux-rdma@vger.kernel.org,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH net-next v2 2/5] net: skbuff: refcount spliced page_pool frags via skb_pipe_buf_ops
Date: Mon, 09 Nov 2026 06:00:41 +0000 [thread overview]
Message-ID: <sashiko-outbox-204471@kernel.org> (raw)
In-Reply-To: <20261108060016.2131509-3-almasrymina@google.com>
> Update skb_splice_bits() (spd_fill_page(), sock_spd_release(), and
> skb_pipe_buf_ops) and skb_append_pagefrags() to acquire and release
> references via netmem_inc_ref(), netmem_dec_ref(), and skb_frag_ref()
> so page_pool RX fragments spliced into a pipe remain pinned in the pool
> while in the pipe and pair with skb_append_pagefrags() and
> skb_release_data() when spliced into a TX socket once netmem_inc_ref()
> and netmem_dec_ref() handle page_pool netmems.
>
> In tls_push_data(), fall back to copying when MSG_SPLICE_PAGES
> encounters a page_pool page because kTLS device offload record->frags[]
> tracks pages via raw struct page references rather than pp_ref_count
> before handing them to tls_push_sg().
>
> Caveats:
> - Because pipe buffers created by skb_splice_bits() hold pp_ref_count
> until released (including across tee()), user pipes holding
> unconsumed spliced data keep those page_pool pages in-flight and
> DMA-mapped in the pool (bounded by pipe capacity and RLIMIT_NOFILE
> rather than sk_rcvbuf) until the pipe buffers are consumed or closed,
> with page_pool_destroy() deferring pool release via its periodic
> workqueue and page_pool_scrub() unmapping DMA.
>
> Signed-off-by: Mina Almasry <almasrymina@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261108060016.2131509-1-almasrymina@google.com?part=2
next prev parent reply other threads:[~2026-11-09 6:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-08 6:00 [PATCH net-next v2 0/5] net: deprecate skb->pp_recycle and skb_mark_for_recycle() Mina Almasry
2026-11-08 6:00 ` [PATCH net-next v2 1/5] net: skbuff: skip managed zerocopy frags in skb_frag_ref() Mina Almasry
2026-11-09 6:00 ` sashiko-bot
2026-11-08 6:00 ` [PATCH net-next v2 2/5] net: skbuff: refcount spliced page_pool frags via skb_pipe_buf_ops Mina Almasry
2026-11-09 6:00 ` sashiko-bot [this message]
2026-11-08 6:00 ` [PATCH net-next v2 3/5] tcp: detach page_pool pages before mapping in tcp_zerocopy_receive() Mina Almasry
2026-11-09 6:00 ` sashiko-bot
2026-11-08 6:00 ` [PATCH net-next v2 4/5] net: remove skb->pp_recycle and consolidate netmem refcounting Mina Almasry
2026-11-09 6:00 ` sashiko-bot
2026-11-08 6:00 ` [PATCH net-next v2 5/5] net: remove skb_mark_for_recycle() Mina Almasry
2026-11-09 6:00 ` sashiko-bot
2026-11-11 1:13 ` [PATCH net-next v2 0/5] net: deprecate skb->pp_recycle and skb_mark_for_recycle() Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-204471@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=almasrymina@google.com \
--cc=eperezma@redhat.com \
--cc=linux-rdma@vger.kernel.org \
--cc=mst@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox