mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Ahern <dsahern@kernel.org>
To: Andrew Melnychenko <andrew@daynix.com>,
	edumazet@google.com, netdev@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org, davem@davemloft.net,
	kuba@kernel.org, jasowang@redhat.com, mst@redhat.com,
	pabeni@redhat.com, yoshfuji@linux-ipv6.org
Cc: yan@daynix.com, yuri.benditovich@daynix.com
Subject: Re: [PATCH v3 0/6] TUN/VirtioNet USO features support.
Date: Wed, 7 Sep 2022 18:44:16 -0600	[thread overview]
Message-ID: <e1e6519f-2e77-05c1-697c-56b174addc6e@kernel.org> (raw)
In-Reply-To: <20220907125048.396126-1-andrew@daynix.com>

On 9/7/22 6:50 AM, Andrew Melnychenko wrote:
> Added new offloads for TUN devices TUN_F_USO4 and TUN_F_USO6.
> Technically they enable NETIF_F_GSO_UDP_L4
> (and only if USO4 & USO6 are set simultaneously).
> It allows the transmission of large UDP packets. 

Please spell out USO at least once in the cover letter to make sure the
acronym is clear.

> 
> Different features USO4 and USO6 are required for qemu where Windows guests can
> enable disable USO receives for IPv4 and IPv6 separately.
> On the other side, Linux can't really differentiate USO4 and USO6, for now.

Why is that and what is needed for Linux to differentiate between the 2
protocols?

> For now, to enable USO for TUN it requires enabling USO4 and USO6 together.
> In the future, there would be a mechanism to control UDP_L4 GSO separately.
> 
> New types for virtio-net already in virtio-net specification:
> https://github.com/oasis-tcs/virtio-spec/issues/120
> 
> Test it WIP Qemu https://github.com/daynix/qemu/tree/USOv3
> 
> Andrew (5):
>   uapi/linux/if_tun.h: Added new offload types for USO4/6.
>   driver/net/tun: Added features for USO.
>   uapi/linux/virtio_net.h: Added USO types.
>   linux/virtio_net.h: Support USO offload in vnet header.
>   drivers/net/virtio_net.c: Added USO support.
> 
> Andrew Melnychenko (1):
>   udp: allow header check for dodgy GSO_UDP_L4 packets.
> 
>  drivers/net/tap.c               | 10 ++++++++--
>  drivers/net/tun.c               |  8 +++++++-
>  drivers/net/virtio_net.c        | 19 +++++++++++++++----
>  include/linux/virtio_net.h      |  9 +++++++++
>  include/uapi/linux/if_tun.h     |  2 ++
>  include/uapi/linux/virtio_net.h |  5 +++++
>  net/ipv4/udp_offload.c          |  2 +-
>  7 files changed, 47 insertions(+), 8 deletions(-)
> 


  parent reply	other threads:[~2022-09-08  0:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07 12:50 Andrew Melnychenko
2022-09-07 12:50 ` [PATCH v3 1/6] udp: allow header check for dodgy GSO_UDP_L4 packets Andrew Melnychenko
2022-09-08  0:40   ` David Ahern
2022-09-08 20:10     ` Andrew Melnichenko
2022-09-07 12:50 ` [PATCH v3 2/6] uapi/linux/if_tun.h: Added new offload types for USO4/6 Andrew Melnychenko
2022-09-07 12:50 ` [PATCH v3 3/6] driver/net/tun: Added features for USO Andrew Melnychenko
2022-09-07 12:50 ` [PATCH v3 4/6] uapi/linux/virtio_net.h: Added USO types Andrew Melnychenko
2022-09-07 12:50 ` [PATCH v3 5/6] linux/virtio_net.h: Support USO offload in vnet header Andrew Melnychenko
2022-09-07 12:50 ` [PATCH v3 6/6] drivers/net/virtio_net.c: Added USO support Andrew Melnychenko
2022-09-08  0:44 ` David Ahern [this message]
2022-09-08 20:09   ` [PATCH v3 0/6] TUN/VirtioNet USO features support Andrew Melnichenko

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=e1e6519f-2e77-05c1-697c-56b174addc6e@kernel.org \
    --to=dsahern@kernel.org \
    --cc=andrew@daynix.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=jasowang@redhat.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=yan@daynix.com \
    --cc=yoshfuji@linux-ipv6.org \
    --cc=yuri.benditovich@daynix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome