From: Wei Xu <wexu@redhat.com>
To: Jason Wang <jasowang@redhat.com>, qemu-devel@nongnu.org
Cc: yvugenfi@redhat.com, dfleytma@redhat.com, mst@redhat.com
Subject: Re: [Qemu-devel] [ RFC Patch v7 0/2] Support Receive-Segment-Offload(RSC) for WHQL
Date: Fri, 25 Nov 2016 09:37:18 +0800 [thread overview]
Message-ID: <583795CE.2060700@redhat.com> (raw)
In-Reply-To: <ee5e0447-cd95-4283-ff56-009d3d60cf2b@redhat.com>
On 2016年11月24日 12:28, Jason Wang wrote:
>
>
> On 2016年11月01日 01:41, wexu@redhat.com wrote:
>> From: Wei Xu <wexu@redhat.com>
>>
>> This patch is to support WHQL test for Windows guest, while this
>> feature also benifits other guest works as a kernel 'gro' like
>> feature with userspace implementation.
>>
>> Feature information:
>> http://msdn.microsoft.com/en-us/library/windows/hardware/jj853324
>>
>> v6->v7
>> - Change the drain timer from 'virtual' to 'host' since it invisible
>> to guest.
>> - Move the buffer list empty check to virtio_net_rsc_do_coalesc().
>> - The header comparision is a bit odd for ipv4 in this patch, it
>> should be simpler with equal check, but this is also a helper for ipv6
>> in next patch, and ipv6 used a different size address fields, so i
>> used
>> an 'address + size' byte comparision for address, and change comparing
>> the tcp port with 'int' equal check.
>> - Add count for packets whose size less than a normal tcp packet in
>> sanity check.
>> - Move constant value comparison to the right side of the equal symbol.
>> - Use host header length in stead of guest header length to verify a
>> packet in virtio_net_rsc_receive(), in case of the different header
>> length for guest and host.
>> - Check whether the packet size is enough to hold a legal packet before
>> extract ip unit.
>> - Bypass ip/tcp ECN packets.
>> - Expand the feature bit definition from 32 to 64 bits.
>>
>> Other notes:
>> - About tcp windows scale, we don't have connection tracking about all
>> tcp connections, so we don't know what the exact window size is using,
>> thus this feature may get negative influence to it, have to turn this
>> feature off for such a user case currently.
>> - There are 2 new fields in the virtio net header, it's not in either
>> kernel tree or maintainer's tree right now, I just put it directly
>> here.
>> - The statistics is kept in this version since it's helpful for
>> troubleshooting.
>
> Please do not adding more and more stuffs in the same patch. Instead,
> you can add them by using new patches on top. This can greatly simplify
> the reviewers' work. E.g in this version, it looks like the parts of
> virtio extension brings lots of troubles. So I suggest to split the
> patch into several parts:
>
> - helpers (e.g macro for ECN bit)
> - core coalescing logic which has been reviewed for several version,
> please do not add more functions to this part. This part could be even
> disabled in the code until virtio part is introduced.
> - virtio extension (e.g virtio-net header extension and feature bits)
> - stats
OK, get split it in next version.
>
> Thanks
prev parent reply other threads:[~2016-11-25 1:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-31 17:41 [Qemu-devel] [ RFC Patch v7 0/2] Support Receive-Segment-Offload(RSC) for WHQL wexu
2016-10-31 17:41 ` [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic wexu
2016-11-24 4:17 ` Jason Wang
2016-11-24 4:26 ` Michael S. Tsirkin
2016-11-24 4:31 ` Jason Wang
2016-11-24 5:09 ` Michael S. Tsirkin
2016-11-30 8:55 ` Wei Xu
2016-11-30 11:12 ` Jason Wang
2016-10-31 17:41 ` [Qemu-devel] [PATCH 2/2] virtio-net rsc: support coalescing ipv6 " wexu
2016-11-24 4:28 ` [Qemu-devel] [ RFC Patch v7 0/2] Support Receive-Segment-Offload(RSC) for WHQL Jason Wang
2016-11-25 1:37 ` Wei Xu [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=583795CE.2060700@redhat.com \
--to=wexu@redhat.com \
--cc=dfleytma@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yvugenfi@redhat.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.