From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 81D8E9A81 for ; Thu, 16 Apr 2015 08:26:12 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 15 Apr 2015 23:26:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,586,1422950400"; d="scan'208,217";a="556924678" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by orsmga003.jf.intel.com with ESMTP; 15 Apr 2015 23:26:06 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 16 Apr 2015 14:26:03 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.223]) by SHSMSX152.ccr.corp.intel.com ([10.239.6.52]) with mapi id 14.03.0224.002; Thu, 16 Apr 2015 14:26:02 +0800 From: "Ouyang, Changchun" To: Stephen Hemminger Thread-Topic: [dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation Thread-Index: AQHQd4/pjBhKAfLLNECfkY4JaPAKEJ1O/H+g//+f9oCAAI6YoA== Date: Thu, 16 Apr 2015 06:26:02 +0000 Message-ID: References: <1429111219-8789-1-git-send-email-stephen@networkplumber.org> <1429111219-8789-5-git-send-email-stephen@networkplumber.org> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 4/5] virtio: fix ring size negotiation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2015 06:26:13 -0000 DQoNCkZyb206IFN0ZXBoZW4gSGVtbWluZ2VyIFttYWlsdG86c3RlcGhlbkBuZXR3b3JrcGx1bWJl ci5vcmddDQpTZW50OiBUaHVyc2RheSwgQXByaWwgMTYsIDIwMTUgMTo0OCBQTQ0KVG86IE91eWFu ZywgQ2hhbmdjaHVuDQpDYzogZGV2QGRwZGsub3JnDQpTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBb UEFUQ0ggNC81XSB2aXJ0aW86IGZpeCByaW5nIHNpemUgbmVnb3RpYXRpb24NCg0KTm8gd2Fybmlu ZyBpcyBuZWVkZWQsIGl0IGp1c3Qgd29ya3MuDQoNCkkga25vdyBpdCB3b3JrcywgYnV0IHRoZSB1 cHBlciB1c2VyIGRvbuKAmXQga25vdyB0aGUgZGVzY3JpcHRvciBudW1iZXIgaXMgcmVkdWNlZC4N CkkgY29uY2VybiBpdCBpcyBub3Qgc28gdXNlci1mcmllbmRseSBoZXJlLg0KDQoNCk9uIFdlZCwg QXByIDE1LCAyMDE1IGF0IDg6MzkgUE0sIE91eWFuZywgQ2hhbmdjaHVuIDxjaGFuZ2NodW4ub3V5 YW5nQGludGVsLmNvbTxtYWlsdG86Y2hhbmdjaHVuLm91eWFuZ0BpbnRlbC5jb20+PiB3cm90ZToN Cg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGRldiBbbWFpbHRvOmRl di1ib3VuY2VzQGRwZGsub3JnPG1haWx0bzpkZXYtYm91bmNlc0BkcGRrLm9yZz5dIE9uIEJlaGFs ZiBPZiBTdGVwaGVuDQo+IEhlbW1pbmdlcg0KPiBTZW50OiBXZWRuZXNkYXksIEFwcmlsIDE1LCAy MDE1IDExOjIwIFBNDQo+IFRvOiBkZXZAZHBkay5vcmc8bWFpbHRvOmRldkBkcGRrLm9yZz4NCj4g U3ViamVjdDogW2R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At ICAgICAgICAgICAgICAgICAgICAgbmJfZGVzYywgdnFfc2l6ZSk7DQo+IC0gICAgICAgICAgICAg bmJfZGVzYyA9IHZxX3NpemU7DQo+ICsgICAgIH0NCj4gKw0KPiArICAgICBpZiAobmJfZGVzYyA8 IHZxX3NpemUpIHsNCj4gKyAgICAgICAgICAgICBpZiAoIXJ0ZV9pc19wb3dlcl9vZl8yKG5iX2Rl c2MpKSB7DQo+ICsgICAgICAgICAgICAgICAgICAgICBQTURfSU5JVF9MT0coRVJSLA0KPiArICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJuYl9kZXNjKCV1KSBzaXplIGlzIG5vdCBw b3dlcm9mIDIiLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5iX2Rlc2Mp Ow0KPiArICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIC1FSU5WQUw7DQo+ICsgICAgICAgICAg ICAgfQ0KPiArICAgICAgICAgICAgIHZxX3NpemUgPSBuYl9kZXNjOw0KRG9uJ3Qgd2UgbmVlZCBh IHdhcm5pbmcgd2hlbiBuYl9kZXNjID4gdnFfc2l6ZT8NCg0KPiAgICAgICB9DQo+DQo+ICAgICAg IGlmIChxdWV1ZV90eXBlID09IFZUTkVUX1JRKSB7DQo+IC0tDQo+IDIuMS40DQoNCg==