From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id BC56F28F3 for ; Wed, 11 Jan 2017 02:08:08 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 10 Jan 2017 17:08:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="921122584" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 10 Jan 2017 17:08:07 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 10 Jan 2017 17:08:07 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 10 Jan 2017 17:08:06 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Wed, 11 Jan 2017 09:08:04 +0800 From: "Zhang, Helin" To: Olivier MATZ , Christos Ricudis , "Rowden, Aaron F" CC: "dev@dpdk.org" , "Wu, Jingjing" Thread-Topic: [dpdk-dev] i40e_aq_get_phy_capabilities() fails when using SFP+ with no link Thread-Index: AQHSa1ZO1fRf9F/azkalDauylpl8oaEydqrw Date: Wed, 11 Jan 2017 01:08:04 +0000 Message-ID: References: <2BF7FCC7-B2DF-43EE-B5F8-2F3271FB3DA1@gmail.com> <20170110162849.2256dc6e@glumotte.dev.6wind.com> In-Reply-To: <20170110162849.2256dc6e@glumotte.dev.6wind.com> 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] i40e_aq_get_phy_capabilities() fails when using SFP+ with no link 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, 11 Jan 2017 01:08:09 -0000 SGkgQWFyb24NCg0KSXMgdGhlIFNGUCsgKEZpbmlzYXIgRlRMWDg1NzFEM0JDTCkgc3VwcG9ydGVk IGFuZCB2YWxpZGF0ZWQgYnkgSW50ZWw/DQpJdCBzZWVtcyB0aGVyZSBpcyBzb21lIFBIWSBpc3N1 ZSBpbiB0aGlzIGNhc2UuDQoNClJlZ2FyZHMsDQpIZWxpbg0KDQotLS0tLU9yaWdpbmFsIE1lc3Nh Z2UtLS0tLQ0KRnJvbTogT2xpdmllciBNQVRaIFttYWlsdG86b2xpdmllci5tYXR6QDZ3aW5kLmNv bV0gDQpTZW50OiBUdWVzZGF5LCBKYW51YXJ5IDEwLCAyMDE3IDExOjI5IFBNDQpUbzogQ2hyaXN0 b3MgUmljdWRpcyA8cmljdWRpcy5jaHJpc3Rvc0BnbWFpbC5jb20+DQpDYzogZGV2QGRwZGsub3Jn OyBaaGFuZywgSGVsaW4gPGhlbGluLnpoYW5nQGludGVsLmNvbT47IFd1LCBKaW5namluZyA8amlu Z2ppbmcud3VAaW50ZWwuY29tPg0KU3ViamVjdDogUmU6IFtkcGRrLWRldl0gaTQwZV9hcV9nZXRf cGh5X2NhcGFiaWxpdGllcygpIGZhaWxzIHdoZW4gdXNpbmcgU0ZQKyB3aXRoIG5vIGxpbmsNCg0K SGkgQ2hyaXN0b3MsDQoNCitDQyBpNDBlIG1haW50YWluZXJzDQoNCk9uIFR1ZSwgMTAgSmFuIDIw MTcgMjA6MzI6MjYgKzA4MDAsIENocmlzdG9zIFJpY3VkaXMgPHJpY3VkaXMuY2hyaXN0b3NAZ21h aWwuY29tPiB3cm90Z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