From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id ABA952E8A for ; Wed, 25 Feb 2015 07:59:01 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 24 Feb 2015 22:59:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,643,1418112000"; d="scan'208,217";a="656858989" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by orsmga001.jf.intel.com with ESMTP; 24 Feb 2015 22:58:59 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 25 Feb 2015 14:58:56 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.161]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.209]) with mapi id 14.03.0195.001; Wed, 25 Feb 2015 14:58:55 +0800 From: "Zhou, Danny" To: David Marchand Thread-Topic: [dpdk-dev] [PATCH v5 5/6] eal: add per rx queue interrupt handling based on VFIO Thread-Index: AQHQUB6uNXRwp0NwLUuQD42WFPZWEZ0Acbmw Date: Wed, 25 Feb 2015 06:58:55 +0000 Message-ID: References: <1424710542-14637-1-git-send-email-danny.zhou@intel.com> <1424710542-14637-6-git-send-email-danny.zhou@intel.com> 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 v5 5/6] eal: add per rx queue interrupt handling based on VFIO 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: Wed, 25 Feb 2015 06:59:03 -0000 VGhhbmtzIGZvciBjb21tZW50cyBhbmQgcGxlYXNlIHNlZSBteSBhbnN3ZXJzIGlubGluZS4NCg0K RnJvbTogRGF2aWQgTWFyY2hhbmQgW21haWx0bzpkYXZpZC5tYXJjaGFuZEA2d2luZC5jb21dDQpT ZW50OiBUdWVzZGF5LCBGZWJydWFyeSAyNCwgMjAxNSA2OjQyIFBNDQpUbzogWmhvdSwgRGFubnkN CkNjOiBkZXZAZHBkay5vcmcNClN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2NSA1LzZd IGVhbDogYWRkIHBlciByeCBxdWV1ZSBpbnRlcnJ1cHQgaGFuZGxpbmcgYmFzZWQgb24gVkZJTw0K DQpIZWxsbyBEYW5ueSwNCg0KT24gTW9uLCBGZWIgMjMsIDIwMTUgYXQgNTo1NSBQTSwgWmhvdSBE YW5ueSA8ZGFubnkuemhvdUBpbnRlbC5jb208bWFpbHRvOmRhbm55Lnpob3VAaW50ZWwuY29tPj4g d3JvdGU6DQoNCltzbmlwXQ0KDQorLyoqDQorICogQHBhcmFtIGludHJfaGFuZGxlDQorICogICBw b2ludGVyIHRvIHRoZSBpbnRlcnJ1cHQgaGFuZGxlLg0KKyAqIEBwYXJhbSBxdWV1ZV9pZA0KKyAq ICAgdGhlIHF1ZXVlIGlkDQorICogQHJldHVybg0KKyAqICAgLSBPbiBzdWNjZXNzLCByZXR1cm4g MA0KKyAqICAgLSBPbiBmYWlsdXJlLCByZXR1cm5zIC0xLg0KKyAqLw0KK2ludCBydGVfaW50cl93 YWl0X3J4X3BrdChzdHJ1Y3QgcnRlX2ludHJfaGFuZGxlICppbnRyX2hhbmRsZSwNCisgICAgICAg ICAgICAgICAgICAgICAgIHVpbnQ4X3QgcXVldWVfaWQpOw0KKw0KDQpGcm9tIG15IHBvaW50IG9m IHZpZXcsIHRoZSBxdWV1ZV9pZCAoanV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SU5UUl9IQU5ETEVf VkZJT19MRUdBQ1k6DQorICAgICAgICAgICAgICAgZXYuZGF0YS5mZCA9IGludHJfaGFuZGxlLT5x dWV1ZV9mZFtxdWV1ZV9pZF07DQorICAgICAgICAgICAgICAgYnJlYWs7DQorI2VuZGlmDQorICAg ICAgIGRlZmF1bHQ6DQorICAgICAgICAgICAgICAgcnRlX3NwaW5sb2NrX3VubG9jaygmaW50cl9s b2NrKTsNCisgICAgICAgICAgICAgICBjbG9zZShwZmQpOw0KKyAgICAgICAgICAgICAgIHJldHVy biAtMTsNCisgICAgICAgfQ0KKw0KKyAgICAgICBpZiAoZXBvbGxfY3RsKHBmZCwgRVBPTExfQ1RM X0FERCwgZXYuZGF0YS5mZCwgJmV2KSA8IDApIHsNCisgICAgICAgICAgICAgICBSVEVfTE9HKEVS UiwgRUFMLCAiRXJyb3IgYWRkaW5nIGZkICVkIGVwb2xsX2N0bCwgJXNcbiIsDQorICAgICAgICAg ICAgICAgICAgICAgICBpbnRyX2hhbmRsZS0+cXVldWVfZmRbcXVldWVfaWRdLCBzdHJlcnJvcihl cnJubykpOw0KKyAgICAgICB9IGVsc2UNCisgICAgICAgICAgICAgICBudW1mZHMrKzsNCisNCisg ICAgICAgcnRlX3NwaW5sb2NrX3VubG9jaygmaW50cl9sb2NrKTsNCisgICAgICAgLyogc2VydmUg dGhlIGludGVycnVwdCAqLw0KKyAgICAgICBlYWxfaW50cl9oYW5kbGVfcnhfaW50ZXJydXB0cyhp bnRyX2hhbmRsZSwgcGZkLCBudW1mZHMpOw0KKw0KKyAgICAgICAvKioNCisgICAgICAgKiB3aGVu IHdlIHJldHVybiwgd2UgbmVlZCB0byByZWJ1aWxkIHRoZQ0KKyAgICAgICAqIGxpc3Qgb2YgZmRz IHRvIG1vbml0b3IuDQorICAgICAgICovDQorICAgICAgIGNsb3NlKHBmZCk7DQoNCldoeSBkbyB3 ZSBuZWVkIHRvIHJlYnVpbGQgdGhpcyAibGlzdCBvZiBmZHMiID8NCk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