Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-11-30 Thread Jason Wang
On 2016年11月30日 16:55, Wei Xu wrote: On 2016年11月24日 12:17, Jason Wang wrote: On 2016年11月01日 01:41, w...@redhat.com wrote: From: Wei Xu All the data packets in a tcp connection are cached to a single buffer in every receive interval, and will be sent out via a timer, the

Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-11-30 Thread Wei Xu
On 2016年11月24日 12:17, Jason Wang wrote: On 2016年11月01日 01:41, w...@redhat.com wrote: From: Wei Xu All the data packets in a tcp connection are cached to a single buffer in every receive interval, and will be sent out via a timer, the 'virtio_net_rsc_timeout' controls the

Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-11-23 Thread Michael S. Tsirkin
On Thu, Nov 24, 2016 at 12:31:18PM +0800, Jason Wang wrote: > > > On 2016年11月24日 12:26, Michael S. Tsirkin wrote: > > On Thu, Nov 24, 2016 at 12:17:21PM +0800, Jason Wang wrote: > > > > diff --git a/include/standard-headers/linux/virtio_net.h > > > >

Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-11-23 Thread Jason Wang
On 2016年11月24日 12:26, Michael S. Tsirkin wrote: On Thu, Nov 24, 2016 at 12:17:21PM +0800, Jason Wang wrote: diff --git a/include/standard-headers/linux/virtio_net.h b/include/standard-headers/linux/virtio_net.h index 30ff249..e67b36e 100644 --- a/include/standard-headers/linux/virtio_net.h

Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-11-23 Thread Michael S. Tsirkin
On Thu, Nov 24, 2016 at 12:17:21PM +0800, Jason Wang wrote: > > diff --git a/include/standard-headers/linux/virtio_net.h > > b/include/standard-headers/linux/virtio_net.h > > index 30ff249..e67b36e 100644 > > --- a/include/standard-headers/linux/virtio_net.h > > +++

Re: [Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-11-23 Thread Jason Wang
On 2016年11月01日 01:41, w...@redhat.com wrote: From: Wei Xu All the data packets in a tcp connection are cached to a single buffer in every receive interval, and will be sent out via a timer, the 'virtio_net_rsc_timeout' controls the interval, this value may impact the

[Qemu-devel] [PATCH 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-10-31 Thread wexu
From: Wei Xu All the data packets in a tcp connection are cached to a single buffer in every receive interval, and will be sent out via a timer, the 'virtio_net_rsc_timeout' controls the interval, this value may impact the performance and response time of tcp connection,

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-20 Thread Jason Wang
On 03/18/2016 12:17 PM, Wei Xu wrote: > > +static ssize_t virtio_net_receive(NetClientState *nc, > + const uint8_t *buf, size_t size) > +{ > +if (virtio_net_rsc_bypass) { > +return virtio_net_do_receive(nc, buf, size); You

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Jason Wang
On 03/18/2016 02:38 PM, Wei Xu wrote: > > > On 2016年03月18日 13:20, Jason Wang wrote: >> >> On 03/18/2016 12:17 PM, Wei Xu wrote: >>> +static ssize_t virtio_net_receive(NetClientState *nc, >>> + const uint8_t *buf, size_t size) >>> +{ >>> +if

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Wei Xu
On 2016年03月17日 16:42, Jason Wang wrote: On 03/15/2016 05:17 PM, w...@redhat.com wrote: From: Wei Xu All the data packets in a tcp connection will be cached to a big buffer in every receive interval, and will be sent out via a timer, the 'virtio_net_rsc_timeout' controls the

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Jason Wang
On 03/18/2016 12:45 AM, Wei Xu wrote: > On 2016年03月17日 16:42, Jason Wang wrote: > >> >> On 03/15/2016 05:17 PM, w...@redhat.com wrote: >>> From: Wei Xu >>> >>> All the data packets in a tcp connection will be cached to a big buffer >>> in every receive interval, and will be

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Wei Xu
On 2016年03月18日 10:03, Jason Wang wrote: On 03/18/2016 12:45 AM, Wei Xu wrote: On 2016年03月17日 16:42, Jason Wang wrote: On 03/15/2016 05:17 PM, w...@redhat.com wrote: From: Wei Xu All the data packets in a tcp connection will be cached to a big buffer in every receive

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Wei Xu
On 2016年03月18日 14:56, Jason Wang wrote: On 03/18/2016 02:38 PM, Wei Xu wrote: On 2016年03月18日 13:20, Jason Wang wrote: On 03/18/2016 12:17 PM, Wei Xu wrote: +static ssize_t virtio_net_receive(NetClientState *nc, + const uint8_t *buf, size_t size) +{ +if

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Wei Xu
On 2016年03月18日 13:20, Jason Wang wrote: On 03/18/2016 12:17 PM, Wei Xu wrote: +static ssize_t virtio_net_receive(NetClientState *nc, + const uint8_t *buf, size_t size) +{ +if (virtio_net_rsc_bypass) { +return virtio_net_do_receive(nc, buf, size);

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-19 Thread Jason Wang
On 03/15/2016 05:17 PM, w...@redhat.com wrote: > From: Wei Xu > > All the data packets in a tcp connection will be cached to a big buffer > in every receive interval, and will be sent out via a timer, the > 'virtio_net_rsc_timeout' controls the interval, the value will influent

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-15 Thread Wei Xu
Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic On Tue, Mar 15, 2016 at 05:17:03PM +0800, w...@redhat.com wrote: > From: Wei Xu <w...@redhat.com> > > All the data packets in a tcp connection will be cached to a big buffer > in every receive interval

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 05:17:03PM +0800, w...@redhat.com wrote: > From: Wei Xu > > All the data packets in a tcp connection will be cached to a big buffer > in every receive interval, and will be sent out via a timer, the > 'virtio_net_rsc_timeout' controls the interval, the

[Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-15 Thread wexu
From: Wei Xu All the data packets in a tcp connection will be cached to a big buffer in every receive interval, and will be sent out via a timer, the 'virtio_net_rsc_timeout' controls the interval, the value will influent the performance and response of tcp connection extremely,