From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 621082BB4 for ; Sun, 20 Mar 2016 20:20:34 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id l68so86632145wml.0 for ; Sun, 20 Mar 2016 12:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=hcjXe3C5MB/DKNT+VjX6fE2ZVHgwtb2wgdxPGfA1Luo=; b=dadHDlKBy3j1h4br/gkQjAWs16H9//qRfz8vIQzTkO5oE5kDT4ngECkZSCkkTmyVI3 leGWTDJqPXI7AcWa50ueIAa5M+Gsc977XaQhd4z4e7r5y0vRCjhGXCAn75EqwrezrCU+ KnSxn4/EuLNZq6sIJKpDTVBHS9qNEYeKThlFJcTrVMrjE1fygtfTP7SdQaIciPmUtd87 lC3HDO+9Msmi4CtJdjc4MeT/vDITbtpUToEZL3OJ7LJf/gIqoBAqbtK1odfqzs7ZVfJd eLYpgnHR951cO2W6CWBQfjPd/vdJCtn6i/m7Tzccowg2enpBW/pXoXy1k5XuaS/YhqSL bBxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=hcjXe3C5MB/DKNT+VjX6fE2ZVHgwtb2wgdxPGfA1Luo=; b=k1/30dGnb9Jo4hrHZAhQg2oQ6zM2KDnJXihace7nqkKM8oCsOm3SaGT+BGXSmQs4F+ yyKziiSES3AmJDY2f3e6f9PFNOnAKmyac7ceAnmVA8giy2yOKI6iaR+N6BF9e35ULhFP HwWvOZ2hXfOZ4mJPhxA4rjeeMKWWjgBDvuNknw49sgrX6NpVSKRBpdilATdGLMl4zoBP uxEAhNuB7/oCo7W6v6T9IxuKqdCWMxhZc13wtpnq+cIwdqR79mMCxHz7D5G63fQ+NNiG l7Zl6MH60rgjW207qNqGsQT2j8bYFhJO8rtsZ8A4u16eiOFTYx5ONJ+WiYDKI3z2ifEH 3hXw== X-Gm-Message-State: AD7BkJINyco0kEDBf5lypLA75vwFqK0tJrgRPq28+Levv4ZYS5+zXJqMRhD3wre6yRDgQqay X-Received: by 10.194.187.240 with SMTP id fv16mr30076049wjc.53.1458501634248; Sun, 20 Mar 2016 12:20:34 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id 192sm9044005wmw.0.2016.03.20.12.20.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2016 12:20:33 -0700 (PDT) From: Thomas Monjalon To: "Zhang, Helin" , Stephen Hemminger Cc: dev@dpdk.org Date: Sun, 20 Mar 2016 20:18:57 +0100 Message-ID: <29795767.yLuRT7a5hO@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <20160318101611.2df26ef6@xeon-e3> <10753400.05iPBPOT6f@xps13> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] DPDK and HW offloads 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: Sun, 20 Mar 2016 19:20:34 -0000 2016-03-20 14:17, Zhang, Helin: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > 2016-03-18 10:16, Stephen Hemminger: > > > Right now, all those offload features are pretty much unusable in a > > > real product without lots and lots of extra codes and huge bug > > > surface. It bothers me enough that I would recommend removing much of the > > filter/offload/ptype stuff from DPDK! > > > > One of the biggest challenge is to think about a good filtering API. > > The offloading has some interaction with the mbuf struct. > > > > I would like to suggest rewriting ethdev API by keeping it as is for some time for > > compatibility while creating a new one. What about the prefix dpdk_netdev_ to > > progressively replace rte_eth_dev? > > I totally agree with to add new and generic APIs for user applications. But I don't > think we need to remove all current APIs. Generic APIs may not support all advanced > hardware features, while specific APIs can. Why not support all? One generic APIs for > common users, and others APIs for advanced users. Yes we cannot access to every features of a device through generic API. Until now we were trying to add an ethdev API for every features even if it is used by only one driver. I think we should allow a direct access to the driver by the applications and work on generic API only for common features.