From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v10 1/4] librte_flow_classify: add flow classify library Date: Tue, 24 Oct 2017 11:50:36 +0200 Message-ID: <2744961.4TGXLb1DrC@xps> References: <1508679124-5922-1-git-send-email-bernard.iremonger@intel.com> <1508771778-617-2-git-send-email-bernard.iremonger@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, ferruh.yigit@intel.com, konstantin.ananyev@intel.com, cristian.dumitrescu@intel.com, adrien.mazarguil@6wind.com, jasvinder.singh@intel.com To: Bernard Iremonger Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 5C0FC199AF for ; Tue, 24 Oct 2017 11:50:38 +0200 (CEST) In-Reply-To: <1508771778-617-2-git-send-email-bernard.iremonger@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" Hi, Few comments detailed below. The new compilation dependencies management needs changes in the Makefile. And the new log system should be used. > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -739,6 +739,13 @@ F: doc/guides/prog_guide/pdump_lib.rst > F: app/pdump/ > F: doc/guides/tools/pdump.rst > > +Flow classify > +M: Bernard Iremonger > +F: lib/librte_flow_classify/ > +F: test/test/test_flow_classify* > +F: examples/flow_classify/ > +F: doc/guides/sample_app_ug/flow_classify.rst > +F: doc/guides/prog_guide/flow_classify_lib.rst I don't how to classify this classify library :) If it is using librte_table, it should be part of Packet Framework? If not part of Packet Framework, please move it before "Distributor". The library is missing in the release notes (.so section and new features). > --- a/lib/librte_eal/common/include/rte_log.h > +++ b/lib/librte_eal/common/include/rte_log.h > @@ -88,6 +88,7 @@ struct rte_logs { > #define RTE_LOGTYPE_EFD 18 /**< Log related to EFD. */ > #define RTE_LOGTYPE_EVENTDEV 19 /**< Log related to eventdev. */ > #define RTE_LOGTYPE_GSO 20 /**< Log related to GSO. */ > +#define RTE_LOGTYPE_CLASSIFY 21 /**< Log related to flow classify. */ We must stop adding the legacy log types. Please switch to dynamic logs and remove CONFIG_RTE_LIBRTE_CLASSIFY_DEBUG. > +CFLAGS += -O3 > +CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) Now the dependencies to internal libraries must be explicitly declared in LDLIBS. > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -58,6 +58,7 @@ _LDLIBS-y += -L$(RTE_SDK_BIN)/lib > # > # Order is important: from higher level to lower level > # > +_LDLIBS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += -lrte_flow_classify > _LDLIBS-$(CONFIG_RTE_LIBRTE_PIPELINE) += -lrte_pipeline > _LDLIBS-$(CONFIG_RTE_LIBRTE_TABLE) += -lrte_table > _LDLIBS-$(CONFIG_RTE_LIBRTE_PORT) += -lrte_port Yes, rte_flow_classify is on top of packet framework.