From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 233302C23 for ; Tue, 28 Feb 2017 02:22:19 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP; 27 Feb 2017 17:22:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,216,1484035200"; d="scan'208";a="1116375924" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 27 Feb 2017 17:22:18 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 27 Feb 2017 17:22:18 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 27 Feb 2017 17:22:18 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by shsmsx102.ccr.corp.intel.com ([169.254.2.88]) with mapi id 14.03.0248.002; Tue, 28 Feb 2017 09:22:16 +0800 From: "Zhang, Qi Z" To: Jan Blunck CC: Thomas Monjalon , dev Thread-Topic: [dpdk-dev] [PATCH 1/2] eal: clean up interrupt handle Thread-Index: AQHSjZS7zy7ayFVDoU+c8QyQs9mx86F8iTAAgAEXDfA= Date: Tue, 28 Feb 2017 01:22:15 +0000 Message-ID: <039ED4275CED7440929022BC67E70611530601D2@SHSMSX103.ccr.corp.intel.com> References: <1487801822-30938-1-git-send-email-qi.z.zhang@intel.com> <1487801822-30938-2-git-send-email-qi.z.zhang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzc3NzQyZjctZDVjZi00ZDk1LTgzY2UtZDM5N2FhYzBlOWZmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IldiaWdLb0ZJa1c2ZGU3TG1vcEkyRGNUXC8zTlpPS0toNnhqaHRMblUwTEgwPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/2] eal: clean up interrupt handle X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 01:22:20 -0000 SEkgSmFuOg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGpibHVuY2tA Z21haWwuY29tIFttYWlsdG86amJsdW5ja0BnbWFpbC5jb21dIE9uIEJlaGFsZiBPZiBKYW4gQmx1 bmNrDQo+IFNlbnQ6IFR1ZXNkYXksIEZlYnJ1YXJ5IDI4LCAyMDE3IDEyOjE5IEFNDQo+IFRvOiBa aGFuZywgUWkgWiA8cWkuei56aGFuZ0BpbnRlbC5jb20+DQo+IENjOiBUaG9tYXMgTW9uamFsb24g PHRob21hcy5tb25qYWxvbkA2d2luZC5jb20+OyBkZXYgPGRldkBkcGRrLm9yZz4NCj4gU3ViamVj dDogUmU6IFtkcGRrLWRldl0gW1BBVENIIDEvMl0gZWFsOiBjbGVhbiB1cCBpbnRlcnJ1cHQgaGFu ZGxlDQ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