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 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: , X-List-Received-Date: Mon, 11 Feb 2019 09:19:01 -0000 Display information about ISA-L lib version in UTs. Signed-off-by: Tomasz Cel --- 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; } -- 2.7.4