From: Jason Wang <jasowang@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>,
Ben Hutchings <ben@decadent.org.uk>
Cc: netdev@vger.kernel.org,
Hannes Frederic Sowa <hannes@stressinduktion.org>,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH v2 net 1/2] drivers/net: Disable UFO through virtio
Date: Fri, 21 Nov 2014 09:47:18 +0800 [thread overview]
Message-ID: <546E99A6.5090803@redhat.com> (raw)
In-Reply-To: <20141119091455.GA26036@redhat.com>
On 11/19/2014 05:14 PM, Michael S. Tsirkin wrote:
> On Thu, Oct 30, 2014 at 06:27:12PM +0000, Ben Hutchings wrote:
>> > IPv6 does not allow fragmentation by routers, so there is no
>> > fragmentation ID in the fixed header. UFO for IPv6 requires the ID to
>> > be passed separately, but there is no provision for this in the virtio
>> > net protocol.
>> >
>> > Until recently our software implementation of UFO/IPv6 generated a new
>> > ID, but this was a bug. Now we will use ID=0 for any UFO/IPv6 packet
>> > passed through a tap, which is even worse.
>> >
>> > Unfortunately there is no distinction between UFO/IPv4 and v6
>> > features, so disable UFO on taps and virtio_net completely until we
>> > have a proper solution.
>> >
>> > We cannot depend on VM managers respecting the tap feature flags, so
>> > keep accepting UFO packets but log a warning the first time we do
>> > this.
>> >
>> > Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
>> > Fixes: 916e4cf46d02 ("ipv6: reuse ip6_frag_id from ip6_ufo_append_data")
> There's something I don't understand here. I see:
>
> NETIF_F_UFO_BIT, /* ... UDPv4 fragmentation */
>
> this comment is wrong then?
Looks wrong, at least ufo6 depends check this bit in ip6_output.c
next prev parent reply other threads:[~2014-11-21 1:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 18:26 [PATCH v2 net 0/2] drivers/net,ipv6: Fix IPv6 fragment ID selection for virtio Ben Hutchings
2014-10-30 18:27 ` [PATCH v2 net 1/2] drivers/net: Disable UFO through virtio Ben Hutchings
2014-10-30 18:47 ` Eric Dumazet
2014-10-30 22:20 ` Ben Hutchings
2014-10-30 23:16 ` Eric Dumazet
2014-11-19 9:14 ` Michael S. Tsirkin
2014-11-21 1:47 ` Jason Wang [this message]
2014-11-21 18:46 ` Ben Hutchings
2014-11-23 10:33 ` Michael S. Tsirkin
2014-10-30 18:27 ` [PATCH v2 net 2/2] drivers/net,ipv6: Select IPv6 fragment idents for virtio UFO packets Ben Hutchings
2014-10-31 0:02 ` [PATCH v2 net 0/2] drivers/net,ipv6: Fix IPv6 fragment ID selection for virtio David Miller
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=546E99A6.5090803@redhat.com \
--to=jasowang@redhat.com \
--cc=ben@decadent.org.uk \
--cc=hannes@stressinduktion.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.org \
/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;
as well as URLs for NNTP newsgroup(s).