From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 1C2EDA49A for ; Mon, 2 Apr 2018 16:34:06 +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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2018 07:34:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,395,1517904000"; d="scan'208";a="30072958" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 02 Apr 2018 07:34:05 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 2 Apr 2018 07:34:04 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 2 Apr 2018 07:34:03 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.235]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.166]) with mapi id 14.03.0319.002; Mon, 2 Apr 2018 22:34:01 +0800 From: "Zhang, Qi Z" To: Chas Williams <3chas3@gmail.com> CC: "Zhang, Helin" , "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: AQHTyofhyPURszvjZE6Pq4rw07KqXqPtfADQ//990wCAAI9LwA== Date: Mon, 2 Apr 2018 14:34:01 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153177C09@SHSMSX103.ccr.corp.intel.com> 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: dlp-product: dlpe-windows dlp-version: 11.0.0.116 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/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: Mon, 02 Apr 2018 14:34:07 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQ2hhcyBXaWxsaWFtcyBb bWFpbHRvOjNjaGFzM0BnbWFpbC5jb21dDQo+IFNlbnQ6IE1vbmRheSwgQXByaWwgMiwgMjAxOCA5 OjU3IFBNDQo+IFRvOiBaaGFuZywgUWkgWiA8cWkuei56aGFuZ0BpbnRlbC5jb20+DQo+IENjOiBa aGFuZywgSGVsaW4gPGhlbGluLnpoYW5nQGludGVsLmNvbT47IGRldkBkcGRrLm9yZzsgTHUsIFdl bnpodW8NCj4gPHdlbnpodW8ubHVAaW50ZWwuY29tPjsgQW5hbnlldiwgS29uc3RhbnRpbg0KPiA8 a29uc3RhbnRpbi5hbmFueWV2QGludGVsLmNvbT47IENoYXJsZXMgKENoYXMpIFdpbGxpYW1zIDxj aGFzM0BhdHQuY29tPg0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9peGdi ZTogdXBkYXRlIGRhdGEtPmV0aF9saW5rIHN0YXR1cyBvbg0KPiBzdGFydA0KPiANCj4gT24gTW9u LCBBcHIgMiwgMjAxOCBhdCA5OjQ1IEFNLCBaaGFuZywgUWkgWiA8cWkuei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