summaryrefslogtreecommitdiff
path: root/drivers/compress
diff options
context:
space:
mode:
authorTomasz Cel <tomaszx.cel@intel.com>2019-02-11 10:18:52 +0100
committerAkhil Goyal <akhil.goyal@nxp.com>2019-03-22 14:27:46 +0100
commitfff7b0ddce74ce4e8e1185763fec0f7b72b34ecd (patch)
tree2dd6d57f104707352236ff70403285aafd4349e5 /drivers/compress
parent25e9517961d9cebcf643952a3e9a76f7a3de951b (diff)
downloaddpdk-next-eventdev-fff7b0ddce74ce4e8e1185763fec0f7b72b34ecd.zip
dpdk-next-eventdev-fff7b0ddce74ce4e8e1185763fec0f7b72b34ecd.tar.gz
dpdk-next-eventdev-fff7b0ddce74ce4e8e1185763fec0f7b72b34ecd.tar.xz
compress/isal: add version display
Display information about ISA-L lib version in UTs. Signed-off-by: Tomasz Cel <tomaszx.cel@intel.com> Acked-by: Lee Daly <lee.daly@intel.com>
Diffstat (limited to 'drivers/compress')
-rw-r--r--drivers/compress/isal/isal_compress_pmd.c8
1 files changed, 8 insertions, 0 deletions
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;
}