From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wang, Liang-min" Subject: Re: [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs Date: Sat, 30 May 2015 16:16:01 +0000 Message-ID: References: <1432946276-9424-1-git-send-email-liang-min.wang@intel.com> <1432946276-9424-3-git-send-email-liang-min.wang@intel.com> <20150530084800.56e3585e@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: Stephen Hemminger , "Richardson, Bruce" , "Ananyev, Konstantin" Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 46237E72 for ; Sat, 30 May 2015 18:16:05 +0200 (CEST) In-Reply-To: <20150530084800.56e3585e@urahara> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >On Fri, 29 May 2015 20:37:56 -0400 >Liang-Min Larry Wang wrote: > >> adding a new library based upon ethdev APIs to provide API's that bear=20 >> the same functionality as ethtool_ops (linux/ethtool.h) and=20 > >net_device_ops (linux/netdevice.h). >The API's for ethtool like things are valuable, but please contain it more= . > >I think you should contain this to only those things which are in the orig= inal Linux ethtool. Adding yet another layer that calls DPDK for open/close= /start stop just adds more layers with out providing any value. > >The ones I would keep: > get_driverinfo > get_link > >The ones I would add: > cmd - for speed/duplex negotiation > eeprom - for eeprom access > eee - for energy awareness > coalesce - for packet coalescing > ringparam - to allow changing ring parameters > (existing rx config model is limiting) > pauseparam - existing flow control in DPDK is mess > gstrings/stats - map to XSTATS > test - for offline tests > dump - for register dump > features - control offload features > perm_addr - base mac address The design decision is to keep ethdev as THE interface for all the external= API, so ethtool APIs are designed based upon ethdev API. At the meantime, = the ethtool APIs are designed to enable users to migrate designs based upon= kernel-space ethtool. The open/close/start are put in place to enable quic= k migration. As for the suggestion, eeprom/ringparam/pauseparam/register-dump are on the= ir way for latter release. For other ops, I will take the feedback for futu= re planning.