From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id C63FB29D2 for ; Tue, 20 Nov 2018 02:39:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 17:39:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,255,1539673200"; d="scan'208";a="251061503" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga004.jf.intel.com with ESMTP; 19 Nov 2018 17:39:55 -0800 From: Fiona Trahe To: dev@dpdk.org Cc: akhil.goyal@nxp.com, tomaszx.jozwiak@intel.com, shally.verma@caviumnetworks.com, ashish.gupta@caviumnetworks.com, lee.daly@intel.com, fiona.trahe@intel.com Date: Tue, 20 Nov 2018 01:39:48 +0000 Message-Id: <1542677988-3876-1-git-send-email-fiona.trahe@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] 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: Tue, 20 Nov 2018 01:39:59 -0000 A new device feature flag, RTE_COMPDEV_FF_SW_OP_DONE_IN_DEQUEUE is added. A PMD which processes operations using a software acceleration engine 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). An application may find this useful for tuning. Signed-off-by: Fiona Trahe --- lib/librte_compressdev/rte_compressdev.c | 2 ++ lib/librte_compressdev/rte_compressdev.h | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/lib/librte_compressdev/rte_compressdev.c b/lib/librte_compressdev/rte_compressdev.c index 10101eb..90d6862 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_SW_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 7b68170..0fc8ed1 100644 --- a/lib/librte_compressdev/rte_compressdev.h +++ b/lib/librte_compressdev/rte_compressdev.h @@ -73,6 +73,14 @@ 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_SW_OP_DONE_IN_DEQUEUE (1ULL << 6) +/**< Only applicable when RTE_COMPDEV_FF_HW_ACCELERATED flag + * is not set. A PMD which processes operations using a software + * acceleration engine 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). + * An application may find this useful for tuning. + */ /** * Get the name of a compress device feature flag. -- 2.7.4