[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-16 Thread Stephen Hemminger
On Thu, 16 Apr 2015 06:26:02 + "Ouyang, Changchun" wrote: > > > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Thursday, April 16, 2015 1:48 PM > To: Ouyang, Changchun > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 4/5] vi

[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-16 Thread Stephen Hemminger
On Thu, 16 Apr 2015 09:38:46 +0200 Thomas Monjalon wrote: > Guys, this is an example of what should not be done with emails formatting. Sorry, Google mail client for Android seems to encourage bad formatting.

[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-16 Thread Thomas Monjalon
ect: Re: [dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation This header is partly useless. > > No warning is needed, it just works. Stephen, please do not top post. It makes harder to find what you are commenting. > > I know it works, but the upper user don?t know the descri

[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-16 Thread Ouyang, Changchun
From: Stephen Hemminger [mailto:step...@networkplumber.org] Sent: Thursday, April 16, 2015 1:48 PM To: Ouyang, Changchun Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation No warning is needed, it just works. I know it works, but the upper user don?t know

[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-16 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen > Hemminger > Sent: Wednesday, April 15, 2015 11:20 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation > > This fixes another of

[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-15 Thread Stephen Hemminger
: Wednesday, April 15, 2015 11:20 PM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation > > > > This fixes another of the issues with running virtio on non-KVM > > envirionments. For example, Google Compute Engine reports a ring

[dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation

2015-04-15 Thread Stephen Hemminger
This fixes another of the issues with running virtio on non-KVM envirionments. For example, Google Compute Engine reports a ring size of 16K. If guest virtio requests more slots than available then the queue should just be initialized to the smaller value. Conversely, if the number of