From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v10 1/5] eal: add rte_uuid support Date: Mon, 11 Jun 2018 10:35:08 -0700 Message-ID: <20180611103508.6893e6ee@xeon-e3> References: <20180608165920.12228-1-stephen@networkplumber.org> <20180608165920.12228-2-stephen@networkplumber.org> <6F565A11-3B17-4A94-806C-3F066499AAD5@intel.com> <20180608111154.4a034010@xeon-e3> <20180610111640.GA7050@jerin> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "Wiles, Keith" , "dev@dpdk.org" , Stephen Hemminger To: Jerin Jacob Return-path: Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by dpdk.org (Postfix) with ESMTP id 8D2B81DE6B for ; Mon, 11 Jun 2018 19:35:11 +0200 (CEST) Received: by mail-pl0-f66.google.com with SMTP id g20-v6so12739442plq.1 for ; Mon, 11 Jun 2018 10:35:11 -0700 (PDT) In-Reply-To: <20180610111640.GA7050@jerin> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sun, 10 Jun 2018 16:46:42 +0530 Jerin Jacob wrote: > -----Original Message----- > > Date: Fri, 8 Jun 2018 11:11:54 -0700 > > From: Stephen Hemminger > > To: "Wiles, Keith" > > Cc: "dev@dpdk.org" , Stephen Hemminger > > > > Subject: Re: [dpdk-dev] [PATCH v10 1/5] eal: add rte_uuid support > > > > On Fri, 8 Jun 2018 17:15:04 +0000 > > "Wiles, Keith" wrote: > > > > > > On Jun 8, 2018, at 9:59 AM, Stephen Hemminger wrote: > > > > > > > > Since uuid functions may not be available everywhere, implement > > > > uuid functions in DPDK. These are based off the BSD licensed > > > > libuuid in util-link. > > > > > > > > Signed-off-by: Stephen Hemminger > > > > --- > > > > lib/librte_eal/bsdapp/eal/Makefile | 1 + > > > > lib/librte_eal/common/Makefile | 2 +- > > > > lib/librte_eal/common/eal_common_uuid.c | 193 +++++++++++++++++++++++ > > > > lib/librte_eal/common/include/rte_uuid.h | 129 +++++++++++++++ > > > > lib/librte_eal/common/meson.build | 2 + > > > > lib/librte_eal/linuxapp/eal/Makefile | 1 + > > > > lib/librte_eal/rte_eal_version.map | 9 ++ > > > > 7 files changed, 336 insertions(+), 1 deletion(-) > > > > create mode 100644 lib/librte_eal/common/eal_common_uuid.c > > > > create mode 100644 lib/librte_eal/common/include/rte_uuid.h > > > > > > > > > > Hi Stephen, Why does this need to be in EAl/Common would this be better in the lib directory for utils or string routines? Does the EAl use the feature for something? > > > > > > Regards, > > > Keith > > > > > > > It could be anywhere. Not tied to being in EAL common but that is where the PCI parsing code is. > > Still not 100% sure we need our own version of this simple code. It is more about BSD and eventually Windows support. > > > IMO, It is useful to add it in common EAL as some drivers can also use it. > But, I think, we must add unit test case for this new API. > I don't see much point in going through the effort of writing unit test since it is just a straight copy of Ted's uuid code which has been around for a long time.