From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id F3FC81B026 for ; Wed, 16 May 2018 16:43:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 07:43:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,390,1520924400"; d="scan'208";a="54881290" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 16 May 2018 07:43:20 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 16 May 2018 07:43:20 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.210]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.6]) with mapi id 14.03.0319.002; Wed, 16 May 2018 22:43:18 +0800 From: "Zhang, Qi Z" To: "Guo, Jia" , "Xing, Beilei" CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/i40e: fix link up failure issue Thread-Index: AQHT7N7TBInTvPlWbkWlBgtRCAj7IqQyafOA Date: Wed, 16 May 2018 14:43:17 +0000 Message-ID: <039ED4275CED7440929022BC67E70611531B3ADE@SHSMSX103.ccr.corp.intel.com> References: <1526452123-116723-1-git-send-email-jia.guo@intel.com> In-Reply-To: <1526452123-116723-1-git-send-email-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTQyMjI4OWYtY2M0Yy00MjU1LTkwY2EtNDBjMjQ4NjQ2MGE4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiI2eWVwK2hxSTB4RG9ydWZwTGN4RWJ4NzBWNGswUERZMzQrZHdYaE1ZNlorWlwvaGFiUEUxSTU5cEZRSXBQTUI5VyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action 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] net/i40e: fix link up failure issue 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: Wed, 16 May 2018 14:43:22 -0000 SGkgSmVmZjoNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBHdW8sIEpp YQ0KPiBTZW50OiBXZWRuZXNkYXksIE1heSAxNiwgMjAxOCAyOjI5IFBNDQo+IFRvOiBYaW5nLCBC ZWlsZWkgPGJlaWxlaS54aW5nQGludGVsLmNvbT47IFpoYW5nLCBRaSBaIDxxaS56LnpoYW5nQGlu dGVsLmNvbT4NCj4gQ2M6IGRldkBkcGRrLm9yZzsgR3VvLCBKaWEgPGppYS5ndW9AaW50ZWwuY29t Pg0KPiBTdWJqZWN0OiBbUEFUQ0hdIG5ldC9pNDBlOiBmaXggbGluayB1cCBmYWlsdXJlIGlzc3Vl DQo+IA0KPiBJZiBkb24ndCBlbmFibGUgYXV0byBuZWdvdGlhdGlvbiB3aGVuIHNldCBQSFkgdG8g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