From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 2/2] mk: move crypto scheduler library Date: Tue, 31 Jan 2017 15:10:22 +0100 Message-ID: <1747389.KZLHpWvR9T@xps13> References: <20170131115950.25660-1-ferruh.yigit@intel.com> <20170131115950.25660-2-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit , Pablo de Lara , Fan Zhang Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 9D58712A8 for ; Tue, 31 Jan 2017 15:10:24 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id v77so95080366wmv.0 for ; Tue, 31 Jan 2017 06:10:24 -0800 (PST) In-Reply-To: <20170131115950.25660-2-ferruh.yigit@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" 2017-01-31 11:59, Ferruh Yigit: > There is already a block for crypto libraries, move the PMD library to > that block. > > This prevents extra ifdef check for cryptodev. That's why I thought also when reading this patch: http://dpdk.org/commit/dbb336407 Then I've read its message: "Different than other cryptodev PMDs, scheduler PMD is required to be built as shared libraries." I guess the explanation is that it has an API (like bonding has): drivers/crypto/scheduler/rte_cryptodev_scheduler.h However, it is neither referenced in doc/api/doxy-api.conf nor doc/api/doxy-api-index.md. > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -103,10 +103,6 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_REORDER) += -lrte_reorder > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += -lrte_pmd_bond > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += -lrte_pmd_xenvirt -lxenstore > > -ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y) > -_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER) += -lrte_pmd_crypto_scheduler > -endif > - > ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),n) > # plugins (link only if static libraries) > > @@ -153,6 +149,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ZUC) += -lrte_pmd_zuc > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ZUC) += -L$(LIBSSO_ZUC_PATH)/build -lsso_zuc > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += -lrte_pmd_armv8 > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += -L$(ARMV8_CRYPTO_LIB_PATH) -larmv8_crypto > +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER) += -lrte_pmd_crypto_scheduler > endif # CONFIG_RTE_LIBRTE_CRYPTODEV > > endif # !CONFIG_RTE_BUILD_SHARED_LIBS I must say the quick overview I had on this PMD is not very promising. Please Pablo and Fan, try to better explain things in the patches and get more review on framework integration.