]> git.droids-corp.org - dpdk.git/blobdiff - drivers/compress/zlib/zlib_pmd.c
common/mlx5: move some getter functions from net driver
[dpdk.git] / drivers / compress / zlib / zlib_pmd.c
index 7d6871b14368c21dd91869058a4fe997a9d34912..e39be2ed86a702429e3a80c2a40a3dcc173dcd70 100644 (file)
@@ -7,6 +7,8 @@
 
 #include "zlib_pmd_private.h"
 
+int zlib_logtype_driver;
+
 /** Compute next mbuf in the list, assign data buffer and length,
  *  returns 0 if mbuf is NULL
  */
@@ -30,6 +32,7 @@ process_zlib_deflate(struct rte_comp_op *op, z_stream *strm)
        default:
                op->status = RTE_COMP_OP_STATUS_INVALID_ARGS;
                ZLIB_PMD_ERR("Invalid flush value\n");
+               return;
        }
 
        if (unlikely(!strm)) {
@@ -425,10 +428,8 @@ static struct rte_vdev_driver zlib_pmd_drv = {
 };
 
 RTE_PMD_REGISTER_VDEV(COMPRESSDEV_NAME_ZLIB_PMD, zlib_pmd_drv);
-RTE_INIT(zlib_init_log);
 
-static void
-zlib_init_log(void)
+RTE_INIT(zlib_init_log)
 {
        zlib_logtype_driver = rte_log_register("pmd.compress.zlib");
        if (zlib_logtype_driver >= 0)