From: Jakub Kicinski <kuba@kernel•org>
To: Vishwanath Seshagiri <vishs@meta•com>
Cc: "Michael S . Tsirkin" <mst@redhat•com>,
"Jason Wang" <jasowang@redhat•com>,
"Xuan Zhuo" <xuanzhuo@linux•alibaba.com>,
"Eugenio Pérez" <eperezma@redhat•com>,
"Andrew Lunn" <andrew+netdev@lunn•ch>,
"David S . Miller" <davem@davemloft•net>,
"Eric Dumazet" <edumazet@google•com>,
"Paolo Abeni" <pabeni@redhat•com>, "David Wei" <dw@davidwei•uk>,
"Matteo Croce" <technoboy85@gmail•com>,
"Ilias Apalodimas" <ilias.apalodimas@linaro•org>,
netdev@vger•kernel.org, virtualization@lists•linux.dev,
linux-kernel@vger•kernel.org, kernel-team@meta•com
Subject: Re: [PATCH net-next v5 2/2] virtio_net: add page_pool support for buffer allocation
Date: Fri, 6 Feb 2026 20:41:40 -0800 [thread overview]
Message-ID: <20260206204140.56d85273@kernel.org> (raw)
In-Reply-To: <20260206002715.1885869-3-vishs@meta.com>
On Thu, 5 Feb 2026 16:27:15 -0800 Vishwanath Seshagiri wrote:
> + page = page_pool_alloc_frag(rq->page_pool, &offset, len + room, gfp);
> + if (unlikely(!page))
> return -ENOMEM;
>
> + buf = page_address(page) + offset;
Please take a look at page_pool_alloc_va()
I mean all the way down until you reach page_pool_alloc_netmem()
and realize the helper you're adding in patch 1 is a solved problem
--
pw-bot: cr
next prev parent reply other threads:[~2026-02-07 4:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 0:27 [PATCH net-next v5 0/2] virtio_net: add page_pool support Vishwanath Seshagiri
2026-02-06 0:27 ` [PATCH net-next v5 1/2] page_pool: add page_pool_frag_offset_add() helper Vishwanath Seshagiri
2026-02-06 0:27 ` [PATCH net-next v5 2/2] virtio_net: add page_pool support for buffer allocation Vishwanath Seshagiri
2026-02-07 4:41 ` Jakub Kicinski [this message]
2026-02-07 5:25 ` Vishwanath Seshagiri
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=20260206204140.56d85273@kernel.org \
--to=kuba@kernel$(echo .)org \
--cc=andrew+netdev@lunn$(echo .)ch \
--cc=davem@davemloft$(echo .)net \
--cc=dw@davidwei$(echo .)uk \
--cc=edumazet@google$(echo .)com \
--cc=eperezma@redhat$(echo .)com \
--cc=ilias.apalodimas@linaro$(echo .)org \
--cc=jasowang@redhat$(echo .)com \
--cc=kernel-team@meta$(echo .)com \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=mst@redhat$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=technoboy85@gmail$(echo .)com \
--cc=virtualization@lists$(echo .)linux.dev \
--cc=vishs@meta$(echo .)com \
--cc=xuanzhuo@linux$(echo .)alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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