From patchwork Mon Feb 11 09:18:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Cel, TomaszX" X-Patchwork-Id: 50263 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EA4A81B5B6; Mon, 11 Feb 2019 10:19:01 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7D5011B5A8; Mon, 11 Feb 2019 10:19:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2019 01:18:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,358,1544515200"; d="scan'208";a="133294763" Received: from tcelx-mobl.ger.corp.intel.com (HELO tomaszc-VirtualBox.mshome.net) ([10.103.104.26]) by orsmga002.jf.intel.com with ESMTP; 11 Feb 2019 01:18:57 -0800 From: Tomasz Cel To: dev@dpdk.org Cc: stable@dpdk.org, fiona.trahe@intel.com, lee.daly@intel.com, pablo.de.lara.guarch@intel.com, tomaszx.jozwiak@intel.com, Tomasz Cel Date: Mon, 11 Feb 2019 10:18:52 +0100 Message-Id: <1549876732-9807-1-git-send-email-tomaszx.cel@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] compress/isal: add ISA-L lib version display 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" Display information about ISA-L lib version in UTs. Signed-off-by: Tomasz Cel Acked-by: Lee Daly --- drivers/compress/isal/isal_compress_pmd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/compress/isal/isal_compress_pmd.c b/drivers/compress/isal/isal_compress_pmd.c index 4748238..8879a42 100644 --- a/drivers/compress/isal/isal_compress_pmd.c +++ b/drivers/compress/isal/isal_compress_pmd.c @@ -19,6 +19,12 @@ #define CHKSUM_SZ_CRC 8 #define CHKSUM_SZ_ADLER 4 +#define STRINGIFY(s) #s +#define ISAL_TOSTRING(maj, min, patch) \ + STRINGIFY(maj)"."STRINGIFY(min)"."STRINGIFY(patch) +#define ISAL_VERSION_STRING \ + ISAL_TOSTRING(ISAL_MAJOR_VERSION, ISAL_MINOR_VERSION, ISAL_PATCH_VERSION) + int isal_logtype_driver; /* Verify and set private xform parameters */ @@ -684,6 +690,8 @@ compdev_isal_create(const char *name, struct rte_vdev_device *vdev, dev->dequeue_burst = isal_comp_pmd_dequeue_burst; dev->enqueue_burst = isal_comp_pmd_enqueue_burst; + ISAL_PMD_LOG(INFO, "\nISA-L library version used: "ISAL_VERSION_STRING); + return 0; }