From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org,
"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
"Jason Wang" <jasowang@redhat.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Eugenio Pérez" <eperezma@redhat.com>
Subject: Re: [PATCH net-next 0/8] virtio: introduce GSO over UDP tunnel
Date: Wed, 21 May 2025 11:52:10 -0400 [thread overview]
Message-ID: <20250521115146-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <cover.1747822866.git.pabeni@redhat.com>
On Wed, May 21, 2025 at 12:32:34PM +0200, Paolo Abeni wrote:
> Some virtualized deployments use UDP tunnel pervasively and are impacted
> negatively by the lack of GSO support for such kind of traffic in the
> virtual NIC driver.
>
> The virtio_net specification recently introduced support for GSO over
> UDP tunnel, this series updates the virtio implementation to support
> such a feature.
>
> Currently the kernel virtio support limits the feature space to 64,
> while the virtio specification allows for a larger number of features.
> Specifically the GSO-over-UDP-tunnel-related virtio features use bits
> 65-69.
>
> The first four patches in this series rework the virtio and vhost
> feature support to cope with up to 128 bits. The limit is arch-dependent:
> only arches with native 128 integer support allow for the wider feature
> space.
>
> This implementation choice is aimed at keeping the code churn as
> limited as possible. For the same reason, only the virtio_net driver is
> reworked to leverage the extended feature space; all other
> virtio/vhost drivers are unaffected, but could be upgraded to support
> the extended features space in a later time.
>
> The last four patches bring in the actual GSO over UDP tunnel support.
> As per specification, some additional fields are introduced into the
> virtio net header to support the new offload. The presence of such
> fields depends on the negotiated features.
>
> A new pair of helpers is introduced to convert the UDP-tunneled skb
> metadata to an extended virtio net header and vice versa. Such helpers
> are used by the tun and virtio_net driver to cope with the newly
> supported offloads.
>
> Tested with basic stream transfer with all the possible permutations of
> host kernel/qemu/guest kernel with/without GSO over UDP tunnel support.
> Sharing somewhat early to collect feedback, especially on the userland
> code.
I like the approach. Some small comments/questions.
> Paolo Abeni (8):
> virtio: introduce virtio_features_t
> virtio_pci_modern: allow setting configuring extended features
> vhost-net: allow configuring extended features
> virtio_net: add supports for extended offloads
> net: implement virtio helpers to handle UDP GSO tunneling.
> virtio_net: enable gso over UDP tunnel support.
> tun: enable gso over UDP tunnel support.
> vhost/net: enable gso over UDP tunnel support.
>
> drivers/net/tun.c | 77 +++++++++--
> drivers/net/tun_vnet.h | 74 +++++++++--
> drivers/net/virtio_net.c | 99 ++++++++++++--
> drivers/vhost/net.c | 32 ++++-
> drivers/vhost/vhost.h | 2 +-
> drivers/virtio/virtio.c | 12 +-
> drivers/virtio/virtio_mmio.c | 4 +-
> drivers/virtio/virtio_pci_legacy.c | 2 +-
> drivers/virtio/virtio_pci_modern.c | 7 +-
> drivers/virtio/virtio_pci_modern_dev.c | 44 +++---
> drivers/virtio/virtio_vdpa.c | 2 +-
> include/linux/virtio.h | 5 +-
> include/linux/virtio_config.h | 22 +--
> include/linux/virtio_features.h | 23 ++++
> include/linux/virtio_net.h | 177 +++++++++++++++++++++++--
> include/linux/virtio_pci_modern.h | 11 +-
> include/uapi/linux/if_tun.h | 9 ++
> include/uapi/linux/vhost.h | 8 ++
> include/uapi/linux/virtio_net.h | 33 +++++
> 19 files changed, 551 insertions(+), 92 deletions(-)
> create mode 100644 include/linux/virtio_features.h
>
> --
> 2.49.0
prev parent reply other threads:[~2025-05-21 15:52 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 10:32 [PATCH net-next 0/8] virtio: introduce GSO over UDP tunnel Paolo Abeni
2025-05-21 10:32 ` [PATCH net-next 1/8] virtio: introduce virtio_features_t Paolo Abeni
2025-05-21 16:02 ` Michael S. Tsirkin
2025-05-22 7:29 ` Paolo Abeni
2025-05-22 15:26 ` Paolo Abeni
2025-05-23 19:50 ` Michael S. Tsirkin
2025-05-22 8:17 ` kernel test robot
2025-05-26 0:43 ` Jason Wang
2025-05-26 7:20 ` Paolo Abeni
2025-05-27 3:51 ` Jason Wang
2025-05-28 15:47 ` Paolo Abeni
2025-05-28 15:52 ` Michael S. Tsirkin
2025-05-29 2:15 ` Jason Wang
2025-05-27 14:14 ` Michael S. Tsirkin
2025-05-21 10:32 ` [PATCH net-next 2/8] virtio_pci_modern: allow setting configuring extended features Paolo Abeni
2025-05-26 0:49 ` Jason Wang
2025-05-26 10:53 ` Paolo Abeni
2025-05-27 3:04 ` Jason Wang
2025-05-28 16:02 ` Paolo Abeni
2025-05-29 2:22 ` Jason Wang
2025-05-29 11:07 ` Paolo Abeni
2025-05-29 14:28 ` Michael S. Tsirkin
2025-06-03 2:11 ` Jason Wang
2025-05-29 14:28 ` Michael S. Tsirkin
2025-05-21 10:32 ` [PATCH net-next 3/8] vhost-net: allow " Paolo Abeni
2025-05-26 0:47 ` Jason Wang
2025-05-26 10:57 ` Paolo Abeni
2025-05-27 3:56 ` Jason Wang
2025-05-29 11:10 ` Paolo Abeni
2025-06-03 2:11 ` Jason Wang
2025-05-21 10:32 ` [PATCH net-next 4/8] virtio_net: add supports for extended offloads Paolo Abeni
2025-05-26 1:01 ` Jason Wang
2025-05-21 10:32 ` [PATCH net-next 5/8] net: implement virtio helpers to handle UDP GSO tunneling Paolo Abeni
2025-05-22 22:29 ` Willem de Bruijn
2025-05-23 6:09 ` Paolo Abeni
2025-05-23 6:44 ` Paolo Abeni
2025-05-23 13:42 ` Willem de Bruijn
2025-05-23 14:00 ` Paolo Abeni
2025-05-26 4:40 ` Jason Wang
2025-05-29 11:55 ` Paolo Abeni
2025-05-30 8:43 ` Paolo Abeni
2025-06-03 2:11 ` Jason Wang
2025-05-29 15:30 ` Paolo Abeni
2025-06-03 2:11 ` Jason Wang
2025-05-21 10:32 ` [PATCH net-next 6/8] virtio_net: enable gso over UDP tunnel support Paolo Abeni
2025-05-22 8:38 ` kernel test robot
2025-05-22 22:33 ` Willem de Bruijn
2025-05-21 10:32 ` [PATCH net-next 7/8] tun: " Paolo Abeni
2025-05-26 4:40 ` Jason Wang
2025-05-26 11:20 ` Paolo Abeni
2025-05-27 4:19 ` Jason Wang
2025-05-29 16:17 ` Paolo Abeni
2025-06-03 2:11 ` Jason Wang
2025-05-21 10:32 ` [PATCH net-next 8/8] vhost/net: " Paolo Abeni
2025-05-22 6:43 ` kernel test robot
2025-05-23 19:54 ` Michael S. Tsirkin
2025-05-26 4:40 ` Jason Wang
2025-05-21 11:38 ` [PATCH net-next 0/8] virtio: introduce GSO over UDP tunnel Paolo Abeni
2025-05-21 15:52 ` Michael S. Tsirkin [this message]
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=20250521115146-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemdebruijn.kernel@gmail.com \
--cc=xuanzhuo@linux.alibaba.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.