1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Cavium Networks
5 #ifndef _RTE_ZLIB_PMD_PRIVATE_H_
6 #define _RTE_ZLIB_PMD_PRIVATE_H_
9 #include <rte_compressdev.h>
10 #include <rte_compressdev_pmd.h>
12 #define COMPRESSDEV_NAME_ZLIB_PMD compress_zlib
13 /**< ZLIB PMD device name */
15 #define DEF_MEM_LEVEL 8
17 int zlib_logtype_driver;
18 #define ZLIB_PMD_LOG(level, fmt, args...) \
19 rte_log(RTE_LOG_ ## level, zlib_logtype_driver, "%s(): "fmt "\n", \
22 #define ZLIB_PMD_INFO(fmt, args...) \
23 ZLIB_PMD_LOG(INFO, fmt, ## args)
24 #define ZLIB_PMD_ERR(fmt, args...) \
25 ZLIB_PMD_LOG(ERR, fmt, ## args)
26 #define ZLIB_PMD_WARN(fmt, args...) \
27 ZLIB_PMD_LOG(WARNING, fmt, ## args)
32 #endif /* _RTE_ZLIB_PMD_PRIVATE_H_ */