From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs Date: Fri, 05 Jun 2015 12:46:47 +0200 Message-ID: <18146131.KjMWrd7xqb@xps13> References: <1432927612-12244-1-git-send-email-liang-min.wang@intel.com> <20150604075810.0c087b21@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, "Wang, Liang-min" To: "Andrew Harvey (agh)" Return-path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id E10555A06 for ; Fri, 5 Jun 2015 12:47:39 +0200 (CEST) Received: by wifx6 with SMTP id x6so16294699wif.0 for ; Fri, 05 Jun 2015 03:47:39 -0700 (PDT) In-Reply-To: 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" 2015-06-04 22:10, Andrew Harvey: > On 6/4/15, 7:58 AM, "Stephen Hemminger" = wrote: > >"Andrew Harvey (agh)" wrote: > >> I believe that their is value in this interface for software stack= s not > >> based on Linux being moved toward DPDK that need simple operations= like > >> getting the mac address. Some of these stacks have a dearth of > >>resources > >> available and dedicating a core/thread to KNI to get/set a mac add= ress > >> is considered excessive. There are also issues with 32/64 bit kern= el > >> integration > >> using KNI. If the ethtool interface is not the correct interface = then > >> please help me > >> understand what should/could have been used. If ethtool is conside= red > >>'old > >> and clunky=C2=B9 > >> Stephen's and your input would be valuable in designing another > >>interface > >> with > >> similar properties. The use-case is pretty simple and there is no= plans > >> for moving > >> anything back into the kernel on the contrary its the complete opp= osite. > >>=20 > >> =E2=80=B9 Andy > > > >We have DPDK API's to do this, and any added wrappers make it bigger= . > >I don't see why calling your ethtool API is better than calling > >rte_eth* API. > > > >If there is a missing functionality in the rte_ethXXX api's for an > >application then add that. For example: rte_eth_mac_addr_get() >=20 > I am getting somewhat confused by your latest comments. Your first e= mail > (referenced below) looked really positive and I found your suggestion= s > useful. Your latest post appears to contradict this and now the inter= face > was there all the time. The wrapper fa=C3=A7ade provided by the etht= ool > library provide a clean separation of concerns and will allow people = to > migrate from not only KNI but in our case from a legacy system. If a= > software stack has requirements to work with multiple IO abstractions= > then the ethtool approach is attractive. I would speculate that many > other stacks moving towards dpdk will have similar issues. >=20 > Summarizing, for our use-cases the ethtool interface facilitated our > adoption to dpdk while allowing us to support our legacy IO abstracti= ons. Stephen and me say the same thing about using the ethdev API. We don't understand why using a fake ethtool lib would be easier. Though you are saying it "facilitated [your] adoption to dpdk". Please could you explain why using an ethtool-like API is easier than using the existing ethdev API? In any case, you have to develop a specific backend for DPDK (rte_ethtool would be also DPDK-specific). It seems you already started to use such an ethtool implementation. Please note that our goal is not to prevent Cisco from upstreaming (evidence with enic driver integration) but we want to guide you, and others having the same needs, to the best solution for everybody. That's why we need to understand what we (or you) are missing. Maybe that it would be clearer with some code examples (which would go in the lib documentation if any). Thanks