From patchwork Fri Sep 11 20:26:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy McDaniel X-Patchwork-Id: 77507 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB30FA04C1; Fri, 11 Sep 2020 22:30:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4FF3F1C196; Fri, 11 Sep 2020 22:30:03 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 69FC01C126 for ; Fri, 11 Sep 2020 22:29:56 +0200 (CEST) IronPort-SDR: 2tDx7ltbagYjr2SREThNIEiWLpPoQoGLAgCfotxZ+s6BtwJGoRw0A06BWnfgFVKVFY8BH/pOu9 LMT6CEh/GQ2A== X-IronPort-AV: E=McAfee;i="6000,8403,9741"; a="156244337" X-IronPort-AV: E=Sophos;i="5.76,417,1592895600"; d="scan'208";a="156244337" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2020 13:29:51 -0700 IronPort-SDR: K1gClQpgxoFNYZCuT+qkP0mmIaCeRlBAeFZab1yT+cUBFXwUNSd6CTSmokpt9xgcQjQjkFh2hv wGj9HqacRAHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,417,1592895600"; d="scan'208";a="481453464" Received: from txasoft-yocto.an.intel.com ([10.123.72.192]) by orsmga005.jf.intel.com with ESMTP; 11 Sep 2020 13:29:50 -0700 From: Timothy McDaniel To: Bruce Richardson , Ray Kinsella , Neil Horman Cc: dev@dpdk.org, erik.g.carrillo@intel.com, gage.eads@intel.com, harry.van.haaren@intel.com, jerinj@marvell.com Date: Fri, 11 Sep 2020 15:26:06 -0500 Message-Id: <1599855987-25976-2-git-send-email-timothy.mcdaniel@intel.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1599855987-25976-1-git-send-email-timothy.mcdaniel@intel.com> References: <1599855987-25976-1-git-send-email-timothy.mcdaniel@intel.com> Subject: [dpdk-dev] [PATCH 01/22] event/dlb2: add meson build infrastructure 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" Adds the meson build infrastructure, which includes compile-time constants in rte_config.h. DLB2 is only supported on Linux X86 platforms at this time. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- config/rte_config.h | 7 +++++++ drivers/event/dlb2/meson.build | 7 +++++++ drivers/event/dlb2/rte_pmd_dlb2_event_version.map | 3 +++ drivers/event/meson.build | 4 ++++ 4 files changed, 21 insertions(+) create mode 100644 drivers/event/dlb2/meson.build create mode 100644 drivers/event/dlb2/rte_pmd_dlb2_event_version.map diff --git a/config/rte_config.h b/config/rte_config.h index 0bae630..fd1b3c3 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -131,4 +131,11 @@ /* QEDE PMD defines */ #define RTE_LIBRTE_QEDE_FW "" +/* DLB2 defines */ +#define RTE_LIBRTE_PMD_DLB2_POLL_INTERVAL 1000 +#define RTE_LIBRTE_PMD_DLB2_UMWAIT_CTL_STATE 0 +#undef RTE_LIBRTE_PMD_DLB2_QUELL_STATS +#define RTE_LIBRTE_PMD_DLB2_SW_CREDIT_QUANTA 32 +#define RTE_PMD_DLB2_DEFAULT_DEPTH_THRESH 256 + #endif /* _RTE_CONFIG_H_ */ diff --git a/drivers/event/dlb2/meson.build b/drivers/event/dlb2/meson.build new file mode 100644 index 0000000..d4fd39f --- /dev/null +++ b/drivers/event/dlb2/meson.build @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019-2020 Intel Corporation + +sources = files( +) + +deps += ['mbuf', 'mempool', 'ring', 'bus_vdev', 'pci', 'bus_pci'] diff --git a/drivers/event/dlb2/rte_pmd_dlb2_event_version.map b/drivers/event/dlb2/rte_pmd_dlb2_event_version.map new file mode 100644 index 0000000..299ae63 --- /dev/null +++ b/drivers/event/dlb2/rte_pmd_dlb2_event_version.map @@ -0,0 +1,3 @@ +DPDK_21.0 { + local: *; +}; diff --git a/drivers/event/meson.build b/drivers/event/meson.build index ebe76a7..f73fcb9 100644 --- a/drivers/event/meson.build +++ b/drivers/event/meson.build @@ -10,6 +10,10 @@ if not (toolchain == 'gcc' and cc.version().version_compare('<4.8.6') and dpdk_conf.has('RTE_ARCH_ARM64')) drivers += 'octeontx' endif +if ((dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_X86')) and + is_linux) + drivers += 'dlb2' +endif std_deps = ['eventdev', 'kvargs'] config_flag_fmt = 'RTE_LIBRTE_@0@_EVENTDEV_PMD' driver_name_fmt = 'rte_pmd_@0@_event'