From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 801B5A0588; Tue, 7 Apr 2020 14:27:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12A222B96; Tue, 7 Apr 2020 14:27:26 +0200 (CEST) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by dpdk.org (Postfix) with ESMTP id 54B7F2B86 for ; Tue, 7 Apr 2020 14:27:25 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id A3EE658056C; Tue, 7 Apr 2020 08:27:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 07 Apr 2020 08:27:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=8nLdUP7JFBXOFa2Oau2yyTD3gF/0k6ZKFGEHtMO8J/k=; b=G3nGwpH6SYG1 0e0ZuYB7sYPF1kCABTzbi5TdfB/Ttv3jQMQVXycPO3E16XpKjx/LwUGtkOnEbBqK ct/DYXtMjmASi/SuIUW2+gzjFwjkjKxvF/lvql8OjoRqKKbWh7qRATwQQm2Jk+jd 5DFoaI8QSzGI1PqhbMPX8nx57jghyJA= 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=8nLdUP7JFBXOFa2Oau2yyTD3gF/0k6ZKFGEHtMO8J /k=; b=oFkKUbpxi1av0t+G/eaqodi0dxxzQlLIKqH18gyU7kkvtLixhhks1ShNi uFvlUlE6F8Ge7pJ3DIGWytDp8GC+EVf+Z8azTkwYq27GA4rP3wt/CYNmc9GqTAPO 2zaiJAORLWeVKchZjCPRO3L4523of1yqINLDNkADQsWNBsB/+UIEGFoaI/nOgWrb 3VnW/vfAOi1OGQAhSxJAliA3nVExpeucQgCXyy0Fc0X77Qfbcxev+14ICLhs+EBN wZ9+MXA3K9vRp8ynJKsRetxbdVrMZvmsZvp0YmfChu8F8twAW/2Z/T2iuNXCUiV1 5upkPZ0+99WZpu1yH/ioVoDuvcJhA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 25D68306D508; Tue, 7 Apr 2020 08:27:14 -0400 (EDT) From: Thomas Monjalon To: Jerin Jacob , Jerin Jacob Kollanukkaran Cc: Ori Kam , "xiang.w.wang@intel.com" , Pavan Nikhilesh Bhagavatula , "dev@dpdk.org" , Shahaf Shuler , "hemant.agrawal@nxp.com" , Opher Reviv , Alex Rosenbaum , Dovrat Zifroni , Prasun Kapoor , "nipun.gupta@nxp.com" , "bruce.richardson@intel.com" , "yang.a.hong@intel.com" , "harry.chang@intel.com" , "gu.jian1@zte.com.cn" , "shanjiangh@chinatelecom.cn" , "zhangy.yun@chinatelecom.cn" , "lixingfu@huachentel.com" , "wushuai@inspur.com" , "yuyingxia@yxlink.com" , "fanchenggang@sunyainfo.com" , "davidfgao@tencent.com" , "liuzhong1@chinaunicom.cn" , "zhaoyong11@huawei.com" , "oc@yunify.com" , "jim@netgate.com" , "hongjun.ni@intel.com" , "j.bromhead@titan-ic.com" , "deri@ntop.org" , "fc@napatech.com" , "arthur.su@lionic.com" , Parav Pandit Date: Tue, 07 Apr 2020 14:27:13 +0200 Message-ID: <2907264.PWNTSA8uO9@thomas> In-Reply-To: References: <1585464438-111285-1-git-send-email-orika@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [EXT] [PATCH v1 3/4] regexdev: add regexdev core functions 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 07/04/2020 07:49, Jerin Jacob: > > > > > > If it abstracts it properly adding vdev and PCI is a simple change. > > > See > > > > > > lib/librte_eventdev/rte_eventdev_pmd_vdev.h > > > lib/librte_eventdev/rte_eventdev_pmd_pci.h > > > > > > I think, the common code should take from other matured subsystem instead if > > > writing from scratch, > > > > > I agree with you about the rewrite, but this is why I don't want to add this code > > until I know what this code should do and how it should be used. > > I don't agree, that one subsystem is like other one by default, and that if something > > is done for one subsystem it should be done for other. > > Not always what was done before is the best. > > > > Some time back there was a long thread about ethdev and the rte device > > where should it be released and by whom. > > My basic thinking is that unless proven otherwise the code should be in the PMD > > this is also why it is important for me to get this rte level API acked. > > when starting to implement the code for the PMD it will be cleared what > > is the shared code and how it is best to configure the system. > > Also this is not external API so it can be changed at any time. > > Saying that I don't think we should wait long before adding such code. > > I think that when we will have our first PMD we know better if such > > function is needed. > > Also think about that maybe this PMD will be shared with the > > net PMD so such function will also introduce more complexity. > > > My thought process was I like this when I added the common code for eventdev. > I have checked ethdev, cryptodev and followed a similar scheme > wherever it applicable for eventdev. > If we see the regexdev API, it is similar to ethdev. cryptodev and > eventdev API. From the device > API PoV, the framework needs to follow the same behavior to avoid > having new behavior for regexdev, > Especially in configure->queue_setup->start->rx_burst->tx_burst->stop->reconfigure->start > sequence. > > > Ethdev may be bloated by features, No, ethdev has more features and is evolving as a better API. > My request is to take cryptodev and > eventdev as a base > change to accordingly. When writing a new API, we should learn from past lessons, including eventdev and cryptodev, but also all the things evolving in ethdev. > That makes review process easy, As reviewer > needs only think, The rationale behind, > Why it regexdev common code chosen a different approach. Writing from > scratch makes the reviewer's job > difficult. > > We spend a lot of time reviewing and make mature cryptodev and > eventdev common code, Please leverage that. Again, leveraging doesn't mean to implement all in one patch. Instead of asking for adding more, please focus on what must be changed in what is proposed in this series.