From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B4988A2F for ; Tue, 25 Apr 2017 03:23:57 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2017 18:23:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,247,1488873600"; d="scan'208";a="960666175" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 24 Apr 2017 18:23:56 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 24 Apr 2017 18:23:56 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 24 Apr 2017 18:23:55 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.246]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.117]) with mapi id 14.03.0319.002; Tue, 25 Apr 2017 09:23:35 +0800 From: "Lu, Wenzhuo" To: Srinivasan J CC: "Ananyev, Konstantin" , "dev@dpdk.org" Thread-Topic: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+ Thread-Index: AQHSucOZ1YeI96AYaUmMwMt6SC8l3aHPQdewgARLNYCAAI7wkP//u8GAgAF4D6A= Date: Tue, 25 Apr 2017 01:23:34 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B59C4B1@shsmsx102.ccr.corp.intel.com> References: <1492685271-7583-1-git-send-email-srinidpdk@gmail.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B59B57F@shsmsx102.ccr.corp.intel.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B59C18B@shsmsx102.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: support detection of hot swapped SFP/SFP+ 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, 25 Apr 2017 01:23:58 -0000 SGkgU3JpbmksDQoNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTcmlu aXZhc2FuIEogW21haWx0bzpzcmluaWRwZGtAZ21haWwuY29tXQ0KPiBTZW50OiBNb25kYXksIEFw cmlsIDI0LCAyMDE3IDY6NTEgUE0NCj4gVG86IEx1LCBXZW56aHVvDQo+IENjOiBBbmFueWV2LCBL b25zdGFudGluOyBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gbmV0L2l4Z2Jl OiBzdXBwb3J0IGRldGVjdGlvbiBvZiBob3Qgc3dhcHBlZCBTRlAvU0ZQKw0KPiANCj4gSGkgV2Vu emh1bywNCj4gICAgICAgICAgICAgICAgICAgICBQb3J0IGhvdC1wbHVnIHdvdWxkIHJlcXVpcmUg dGhlIERQREsgYXBwIHRvIGR5bmFtaWNhbGx5IG1hbmdlDQo+IHBvcnRzIGFuZCB0aGUga2VybmVs IHRvIHN1cHBvcnQgUENJIGhvdC1wbHVnZ2luZy4NCj4gV2hlbiBtdWx0aXBsZSBwb3J0cyBhcmUg ZGV0YWNoZWQvYXR0YWNoZWQgKFNGUCdzIHBsdWdnZWQgaW4vb3V0KSwgd291bGQNCj4gdGhlIERQ REsgcG9ydCBpZCdzIHJlbWFpbiBzYW1lPyBJZiBub3QsIGFwcCBuZWVkc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