From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 6FA9B532D for ; Mon, 10 Jul 2017 17:54:23 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 09B9B20B52; Mon, 10 Jul 2017 11:54:23 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 10 Jul 2017 11:54:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=0xOUCrrNQnxc6xc JHv2ylOU+HloSXCc8W/S+u7yQgbg=; b=URLTILRQHkSc6m8q/gJE3g2EaWJc+/M t6CxBKvImgLw/3sSs/XWxU5ihfkB2+B4+bOOdWkSSSQIuYH9e2ME6NN/QhKY99pf fNRFzJITXeiC7OWiN++2qhRT7Gbpob72wv5Ng2evyMGNAP1ffzPzUyR762UZWuD6 DyP0dDAmsW5U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=0xOUCrrNQnxc6xcJHv2ylOU+HloSXCc8W/S+u7yQgbg=; b=O5KZdvla 8R4/sne+GVL7tLIVAAJTZ0QCMTGPgJwjUmjOwC0gLpWFlewXUVIjD0QcY1We69sF C1pTm/+ziWCVuJdVGg45ztbj+CKD2/46O6Gp2Mj1XXX+sxkJJ7p3Jv0FpBT09wsm A3VgUaisEJdmV0a6b28t1C08liNaiPieA4OqfGVJjEJ28Or8l7lV3XRMWDol6qrD FJATF0V0QqWNLy+fXqnReRYrShAg+pORPPV1JZf90mWLQxzhlqnVKdDnsnwSHoDE lMBoIYymeA9fW8q6s3RAuWsRm/qeDRNgNlKjPfUVTiRWoYKkwtPZ3vqy2QcWw9FW +bf++/Qof99nkA== X-ME-Sender: X-Sasl-enc: y8IVmNxnABjj0HAhyn/jwNbf+JhFLr7LcniajQw3gjwY 1499702062 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A987324776; Mon, 10 Jul 2017 11:54:22 -0400 (EDT) From: Thomas Monjalon To: "Dumitrescu, Cristian" Cc: dev@dpdk.org, "jerin.jacob@caviumnetworks.com" , "hemant.agrawal@nxp.com" , "Singh, Jasvinder" , "Lu, Wenzhuo" , "O'Driscoll, Tim" , "Glynn, Michael J" , Adrien Mazarguil Date: Mon, 10 Jul 2017 17:54:21 +0200 Message-ID: <1847745.dtTWFNCcJQ@xps> In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D891267BA7DA96@IRSMSX108.ger.corp.intel.com> References: <1499182731-86830-1-git-send-email-cristian.dumitrescu@intel.com> <1897417.adnAssk0iV@xps> <3EB4FA525960D640B5BDFFD6A3D891267BA7DA96@IRSMSX108.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [pull-request] next-tm 17.08 pre-rc1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2017 15:54:23 -0000 10/07/2017 17:46, Dumitrescu, Cristian: > From: Thomas Monjalon [mailto:thomas@monjalon.net] > > 10/07/2017 15:21, Dumitrescu, Cristian: > > > From: Thomas Monjalon [mailto:thomas@monjalon.net] > > > > 10/07/2017 12:55, Dumitrescu, Cristian: > > > > > From: Thomas Monjalon [mailto:thomas@monjalon.net] > > > > > > 2/ Some functions are exposed in the API to query the ops. > > > > > > It seems dangerous and useless: > > > > > > - rte_eth_dev_tm_ops_get > > > > > > - rte_tm_ops_get > > > > > > > > > > Thomas, hopefully this is a misunderstanding on your side :(((. > > > > > > > > Don't worry :) > > > > > > > > > This is a critical point that we debated ad nauseam on this email list > > (RFC, V1 > > > > -V6) and privately as well. You were included in the conversation, you > > also > > > > provided feed-back that we incorporated in the code, as documented in > > the > > > > patchset history log. > > > > > > > > > > This is simply the mechanism that we (including you) agreed to use for > > > > modularizing the DPDK ethdev by adding new functionality in a modular > > plug- > > > > in way using separate namespace. This is the exact clone of the same > > > > mechanism that rte_flow is using and was merged in DPDK release 17.02. > > > > Why this change on the fundamentals now? > > > > > > > > > > Hopefully, it is just misunderstanding. > > > > > > > > I mean that only the drivers need to get the ops. > > > > The applications are using some dedicated functions rte_tm_* , right? > > > > So the applications does not need direct ops access with > > > > rte_eth_dev_tm_ops_get()? > > > > Sorry if it is my misunderstanding. > > > > > > > > About rte_tm_ops_get, I don't remember why I talked about it. > > > > It seems exposed only to drivers. My mistake. No issue there. > > > > > > OK, so we're good then? > > > > Not exactly. In my understanding, rte_eth_dev_tm_ops_get() is useless. > > Should it be removed then? > > Why do you think it is useless? How would the driver get the function specific (i.e. rte_flow, rte_tm, ...) operations structure? The drivers get the structure via rte_tm_ops_get() function which is in the well named file rte_tm_driver.h My question is about rte_eth_dev_tm_ops_get() function which is in the file rte_ethdev.h. Please explain the difference between both functions and why rte_eth_dev_tm_ops_get() is needed. Sorry for opening the discussion, I don't see the explanation in doxygen.