From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 476852C30 for ; Thu, 17 Jan 2019 18:36:45 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2019 09:36:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,489,1539673200"; d="scan'208";a="292379213" Received: from sivswdev09.ir.intel.com (HELO localhost.localdomain) ([10.237.217.48]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2019 09:36:42 -0800 From: Fiona Trahe To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, fiona.trahe@intel.com, akhil.goyal@nxp.com, paul.e.luse@intel.com Date: Thu, 17 Jan 2019 17:36:23 +0000 Message-Id: <1547746583-13832-1-git-send-email-fiona.trahe@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1542677988-3876-1-git-send-email-fiona.trahe@intel.com> References: <1542677988-3876-1-git-send-email-fiona.trahe@intel.com> Subject: [dpdk-dev] [PATCH v2] compressdev: add feature flag to specify where processing is done 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: , X-List-Received-Date: Thu, 17 Jan 2019 17:36:45 -0000 A new device feature flag, RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE is added. A PMD should set this if the bulk of the processing is done during the dequeue. It should leave it cleared if the bulk of the processing is done during the enqueue (default). Applications can use this as a hint for tuning. Signed-off-by: Fiona Trahe --- lib/librte_compressdev/rte_compressdev.c | 2 ++ lib/librte_compressdev/rte_compressdev.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/lib/librte_compressdev/rte_compressdev.c b/lib/librte_compressdev/rte_compressdev.c index 10101ebbe..338134bdf 100644 --- a/lib/librte_compressdev/rte_compressdev.c +++ b/lib/librte_compressdev/rte_compressdev.c @@ -66,6 +66,8 @@ rte_compressdev_get_feature_name(uint64_t flag) return "CPU_AVX512"; case RTE_COMPDEV_FF_CPU_NEON: return "CPU_NEON"; + case RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE: + return "OP_DONE_IN_DEQ"; default: return NULL; } diff --git a/lib/librte_compressdev/rte_compressdev.h b/lib/librte_compressdev/rte_compressdev.h index 7b68170a5..d3c0000f0 100644 --- a/lib/librte_compressdev/rte_compressdev.h +++ b/lib/librte_compressdev/rte_compressdev.h @@ -73,6 +73,12 @@ rte_compressdev_capability_get(uint8_t dev_id, /**< Utilises CPU SIMD AVX512 instructions */ #define RTE_COMPDEV_FF_CPU_NEON (1ULL << 5) /**< Utilises CPU NEON instructions */ +#define RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE (1ULL << 6) +/**< A PMD should set this if the bulk of the + * processing is done during the dequeue. It should leave it + * cleared if the processing is done during the enqueue (default). + * Applications can use this as a hint for tuning. + */ /** * Get the name of a compress device feature flag. -- 2.13.6