From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] compressdev: implement API Date: Sat, 24 Mar 2018 02:02:14 +0100 Message-ID: <2211509.83yEhUb72U@xps> References: <1517595924-25963-1-git-send-email-fiona.trahe@intel.com> <1997769.o2qW9LT7Ur@xps> <348A99DA5F5B7549AA880327E580B43589360349@IRSMSX101.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: "dev@dpdk.org" , "ahmed.mansour@nxp.com" , "Shally.Verma@cavium.com" , "De Lara Guarch, Pablo" , "fiona.trahe@gmail.com" To: "Trahe, Fiona" Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id A0EC84C8C for ; Sat, 24 Mar 2018 02:02:42 +0100 (CET) In-Reply-To: <348A99DA5F5B7549AA880327E580B43589360349@IRSMSX101.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 23/03/2018 19:08, Trahe, Fiona: > From: Thomas Monjalon [mailto:thomas@monjalon.net] > > 02/02/2018 19:25, Fiona Trahe: > > > lib/librte_compressdev/rte_comp.h | 503 ++++++++++++ > > > > Why rte_comp.h instead of the more consistent rte_compress.h? > [Fiona] I did originally... but ran into difficulty with horribly names like > RTE_COMPRESS_COMPRESS > RTE_COMPRESS_DECOMPRESS > rte_compress_compress_xform > rte_compress_decompress_xform > So compress is both the module prefix and the name of one of the actions. > I could have used compressdev - but names were very long. > So decided to opt for using > _compressdev_ in names to do with the device and > _comp_ in names to do with the compression service > > Also I could have used compdev instead of compressdev, > but I felt compress should be in the lib name I understand your concerns. I don't like "comp" very much because it sounds like "comparison". However, I don't have a better idea. Sometimes naming is more difficult than coding :)