#include <rte_bus_vdev.h>
#include <rte_common.h>
+#include <rte_cpuflags.h>
#include <rte_malloc.h>
#include <rte_mbuf.h>
#include <rte_compressdev_pmd.h>
#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 */
int
isal_comp_set_priv_xform_parameters(struct isal_priv_xform *priv_xform,
break;
/* Level 3 or higher requested */
default:
+#ifdef RTE_ARCH_X86
/* Check for AVX512, to use ISA-L level 3 */
if (rte_cpu_get_flag_enabled(
RTE_CPUFLAG_AVX512F)) {
RTE_COMP_ISAL_LEVEL_THREE;
priv_xform->level_buffer_size =
ISAL_DEF_LVL3_DEFAULT;
- } else {
+ } else
+#endif
+ {
ISAL_PMD_LOG(DEBUG, "Requested ISA-L level"
" 3 or above; Level 3 optimized"
" for AVX512 & AVX2 only."
RTE_PMD_REGISTER_VDEV(COMPDEV_NAME_ISAL_PMD, compdev_isal_pmd_drv);
RTE_PMD_REGISTER_PARAM_STRING(COMPDEV_NAME_ISAL_PMD,
"socket_id=<int>");
-
-RTE_INIT(isal_init_log)
-{
- isal_logtype_driver = rte_log_register("pmd.compress.isal");
- if (isal_logtype_driver >= 0)
- rte_log_set_level(isal_logtype_driver, RTE_LOG_INFO);
-}
+RTE_LOG_REGISTER_DEFAULT(isal_logtype_driver, INFO);