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 54AAF1D1CB for ; Fri, 6 Apr 2018 16:52:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2018 07:52:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,415,1517904000"; d="scan'208";a="31249523" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga007.jf.intel.com with ESMTP; 06 Apr 2018 07:52:20 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 6 Apr 2018 07:52:19 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.241]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.163]) with mapi id 14.03.0319.002; Fri, 6 Apr 2018 22:52:18 +0800 From: "Zhang, Helin" To: Chas Williams <3chas3@gmail.com>, "Zhang, Qi Z" CC: "dev@dpdk.org" , "Lu, Wenzhuo" , "Ananyev, Konstantin" , "Charles (Chas) Williams" Thread-Topic: [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on start Thread-Index: AQHTyofhryvRwNcxGk+kOlPdSRJai6Ps9pwAgAADNwCABt15QA== Date: Fri, 6 Apr 2018 14:52:17 +0000 Message-ID: References: <20180213225618.15693-1-3chas3@gmail.com> <039ED4275CED7440929022BC67E7061153177875@SHSMSX103.ccr.corp.intel.com> <039ED4275CED7440929022BC67E7061153177B93@SHSMSX103.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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/ixgbe: update data->eth_link status on start 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: Fri, 06 Apr 2018 14:52:23 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQ2hhcyBXaWxsaWFtcyBb bWFpbHRvOjNjaGFzM0BnbWFpbC5jb21dDQo+IFNlbnQ6IE1vbmRheSwgQXByaWwgMiwgMjAxOCA5 OjU3IFBNDQo+IFRvOiBaaGFuZywgUWkgWg0KPiBDYzogWmhhbmcsIEhlbGluOyBkZXZAZHBkay5v cmc7IEx1LCBXZW56aHVvOyBBbmFueWV2LCBLb25zdGFudGluOyBDaGFybGVzDQo+IChDaGFzKSBX aWxsaWFtcw0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9peGdiZTogdXBk YXRlIGRhdGEtPmV0aF9saW5rIHN0YXR1cyBvbg0KPiBzdGFydA0KPiANCj4gT24gTW9uLCBBcHIg MiwgMjAxOCBhdCA5OjQ1IEFNLCBaaGFuZywgUWkgWiA8cWkuei56aGFuZ0BpbnRlbC5jb20+IHdy b3RlOg0KPiA+DQo+ID4NCj4gPj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPj4gRnJv bTogQ2hhcyBXaWxsaWFtcyBbbWFpbHRvOjNjaGFzM0BnbWFpbC5jb21dDQo+ID4+IFNlbnQ6IE1v bmRheSwgQXByaWwgMiwgMjAxOCA5OjM4IFBNDQo+ID4+IFRvOiBaaGFuZywgUWkgWiA8cWkuei56 aGFuZ0BpbnRlbC5jb20+DQo+ID4+IENjOiBaaGFuZywgSGVsaW4gPGhlbGluLnpoYW5nQGludGVs LmNvbT47IGRldkBkcGRrL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