From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D64C15A5D for ; Wed, 1 Jul 2015 09:55:21 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 01 Jul 2015 00:55:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,383,1432623600"; d="scan'208,217";a="517055657" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by FMSMGA003.fm.intel.com with ESMTP; 01 Jul 2015 00:55:19 -0700 Received: from pgsmsx108.gar.corp.intel.com ([169.254.8.80]) by PGSMSX104.gar.corp.intel.com ([10.221.44.91]) with mapi id 14.03.0224.002; Wed, 1 Jul 2015 15:55:18 +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+EIABIEOAgAH4K4CABnpLAIAMIsUAgACZ0DA= Date: Wed, 1 Jul 2015 07:55:16 +0000 Message-ID: <697F8B1B48670548A5BAB03E8283550F3544C9A4@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> <697F8B1B48670548A5BAB03E8283550F35448F93@PGSMSX108.gar.corp.intel.com> <55895E0A.50107@cas-well.com> <55938C30.6040703@cas-well.com> In-Reply-To: <55938C30.6040703@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: Wed, 01 Jul 2015 07:55:22 -0000 SGkgU2NvdHQsDQoNClBsZWFzZSByZWZlciB0byBvdXIgS05JIGxpYnJhcnkgYXQ6LQ0KZHBkay0x LjguMFxsaWJcbGlicnRlX2VhbFxsaW51eGFwcFxrbmlcZXRodG9vbFxpZ2JcaWdiLmgNCg0KUmVn YXJkcywNCkNob2ksIFN5IEpvbmcNClBsYXRmb3JtIEFwcGxpY2F0aW9uIEVuZ2luZWVyDQoNCkZy b206ICJTY290dC5KaHVhbmcgKOiOiua4hee/lCkgOiA2MzA5IiBbbWFpbHRvOlNjb3R0LkpodWFu Z0BjYXMtd2VsbC5jb21dDQpTZW50OiBXZWRuZXNkYXksIEp1bHkgMDEsIDIwMTUgMjo0NCBQTQ0K VG86IENob2ksIFN5IEpvbmc7IGRldkBkcGRrLm9yZw0KU3ViamVjdDogUmU6IFtkcGRrLWRldl0g SG93IHRvIGdldCBuZXRfZGV2aWNlIGFuZCB1c2Ugc3RydWN0IGV0aHRvb2xfY21kIGF0IERQREsg ZW52ZXJpbm1lbnQ/DQoNCkhpIFN5IEpvbmcsDQoNCkhhdmUgYW55IGlkZWE/DQoNCiJTY290dC5K aHVhbmcgKOiOiua4hee/lCkgOiA2MzA5IiDmlrwgMjAxNeW5tDA25pyIMjPml6UgMjE6MjQg5a+r 6YGTOg0KRGVhciBTeSBKb25nLA0KDQpZZXMsIEkgaGF2ZSBjaGVjayBvdXQgRFBESyBLTkksIGJ1 dCBJIHN0aWxsIGNhbid0IGZpbmQgaG93IHRvIHByZXBhcmUgbmV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