From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 002C52A62 for ; Mon, 24 Apr 2017 09:15:41 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2017 00:15:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,243,1488873600"; d="scan'208";a="849109953" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 24 Apr 2017 00:15:40 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 24 Apr 2017 00:15:40 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 24 Apr 2017 00:15:39 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.246]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.217]) with mapi id 14.03.0319.002; Mon, 24 Apr 2017 15:15:37 +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: AQHSucOZ1YeI96AYaUmMwMt6SC8l3aHPQdewgARLNYCAAI7wkA== Date: Mon, 24 Apr 2017 07:15:36 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B59C18B@shsmsx102.ccr.corp.intel.com> References: <1492685271-7583-1-git-send-email-srinidpdk@gmail.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B59B57F@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: Mon, 24 Apr 2017 07:15:42 -0000 SGkgU3JpbmksDQoNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTcmlu aXZhc2FuIEogW21haWx0bzpzcmluaWRwZGtAZ21haWwuY29tXQ0KPiBTZW50OiBNb25kYXksIEFw cmlsIDI0LCAyMDE3IDI6MjQgUE0NCj4gVG86IEx1LCBXZW56aHVvDQo+IENjOiBBbmFueWV2LCBL b25zdGFudGluOyBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gbmV0L2l4Z2Jl OiBzdXBwb3J0IGRldGVjdGlvbiBvZiBob3Qgc3dhcHBlZCBTRlAvU0ZQKw0KPiANCj4gSGkgV2Vu emh1bywNCj4gICAgICAgICAgICAgICAgICAgIEkgdW5kZXJzdGFuZCB5b3VyIGNvbmNlcm4uIEkg aGFkIHRvIGRvIHRoaXMgY2hhbmdlIHRvIHN1cHBvcnQgaG90DQo+IHN3YXAgb2YgU0ZQL1NGUCsg bW9kdWxlcyB3aXRob3V0IHJlc3RhcnRpbmcgdGhlIERQREsgYXBwLiBJZiB3ZSBoYXZlIHNvbWUN Cj4gb3RoZXIgbWVjaGFuaXNtIGluIHBpcGVsaW5lIHRvIHN1cHBvcnQgaG90IHN3YXAgb2YgU0ZQ L1NGUCsgbW9kdWxlcywgdGhlbg0KPiBteSBjaGFuZ2VzIGNhbiBiZSBpZ25vcmVkLiBJIGp1c3Qg d2FudGVkIHRvIHNoYXJlIHRoZSBjaGFuZ2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