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 122EBC654 for ; Fri, 19 Jun 2015 04:36:10 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 18 Jun 2015 19:35:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,642,1427785200"; d="scan'208,217";a="746239505" Received: from pgsmsx107.gar.corp.intel.com ([10.221.44.105]) by fmsmga002.fm.intel.com with ESMTP; 18 Jun 2015 19:35:51 -0700 Received: from pgsmsx108.gar.corp.intel.com ([169.254.8.80]) by PGSMSX107.gar.corp.intel.com ([10.221.44.105]) with mapi id 14.03.0224.002; Fri, 19 Jun 2015 10:35:49 +0800 From: "Choi, Sy Jong" To: =?utf-8?B?IlNjb3R0LkpodWFuZyAo6I6K5riF57+UKSA6IDYzMDki?= , "dev@dpdk.org" Thread-Topic: [dpdk-dev] How to get net_device and use struct ethtool_cmd at DPDK enverinment? Thread-Index: AQHQp1cQ9UcItmMt1Uay1Etrk44wmZ2usWaggADQcoCAAIZ+EIABIEOAgAH4K4A= Date: Fri, 19 Jun 2015 02:35:48 +0000 Message-ID: <697F8B1B48670548A5BAB03E8283550F35448F93@PGSMSX108.gar.corp.intel.com> References: <557EAA67.6090702@cas-well.com> <697F8B1B48670548A5BAB03E8283550F354483D8@PGSMSX108.gar.corp.intel.com> <5580E567.3020204@cas-well.com> <697F8B1B48670548A5BAB03E8283550F35448689@PGSMSX108.gar.corp.intel.com> <55824809.9090804@cas-well.com> In-Reply-To: <55824809.9090804@cas-well.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.20.205] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] How to get net_device and use struct ethtool_cmd at DPDK enverinment? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2015 02:36:12 -0000 SGkgU2NvdHQsDQoNCkRQREsgUE1EIGFyZSBpbnRlcmZhY2luZyB1c2luZyBydGVfZXRoZGV2LmMg d2hpY2ggbGluayB0byBpeGdiZV9ldGhkZXYuYyB0aGVyZeKAmXMgbm8g4oCcbmV0X2RldmljZeKA nSBpbiBvdXIgY29kZS4NCg0KQnV0IGlmIHlvdSBzZWFyY2ggRFBEayBjb2RlIGJhc2VkLCB3ZSBo YXZlIEtOSSBleGFtcGxlIHRvIHRlYWNoIHlvdSBob3cgdG8gcHJlcGFyZSB0aGUgbmV0X2Rldmlj ZSBzdHJ1Y3R1cmUuDQpIYXZlIHlvdSBjaGVjayBvdXQgb3VyIERQREsgS05JIGNvZGVzPw0KDQpS ZWdhcmRzLA0KQ2hvaSwgU3kgSm9uZw0KUGxhdGZvcm0gQXBwbGljYXRpb24gRW5naW5lZXINCg0K RnJvbTogIlNjb3R0LkpodWFuZyAo6I6K5riF57+UKSA6IDYzMDkiIFttYWlsdG86U2NvdHQuSmh1 YW5nQGNhcy13ZWxsLmNvbV0NClNlbnQ6IFRodXJzZGF5LCBKdW5lIDE4LCAyMDE1IDEyOjI1IFBN DQpUbzogQ2hvaSwgU3kgSm9uZzsgZGV2QGRwZGsub3JnDQpTdWJqZWN0OiBSZTogW2RwZGstZGV2 XSBIb3cgdG8gZ2V0IG5ldF9kZXZpY2UgYW5kIHVzZSBzdHJ1Y3QgZXRodG9vbF9jbWQgYXQgRFBE SyBlbnZlcmlubWVudD8NCg0KRGVhciBTeSBKb25nLA0KDQpJJ20gcGxhbm5pbmcgdG8gcHJvZ3Jh bSBhIGRyaXZlciB0byBnZXQgYWxsIHRoZSBldGhwb3J0J3MgbmV0X2RldmljZSBzdHJ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