git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: skip build when missing dependencies
[dpdk.git]
/
drivers
/
compress
/
isal
/
isal_compress_pmd.c
diff --git
a/drivers/compress/isal/isal_compress_pmd.c
b/drivers/compress/isal/isal_compress_pmd.c
index
7d2b05c
..
b7ba61c
100644
(file)
--- a/
drivers/compress/isal/isal_compress_pmd.c
+++ b/
drivers/compress/isal/isal_compress_pmd.c
@@
-5,6
+5,7
@@
#include <rte_bus_vdev.h>
#include <rte_common.h>
#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>
#include <rte_malloc.h>
#include <rte_mbuf.h>
#include <rte_compressdev_pmd.h>
@@
-25,8
+26,6
@@
#define ISAL_VERSION_STRING \
ISAL_TOSTRING(ISAL_MAJOR_VERSION, ISAL_MINOR_VERSION, ISAL_PATCH_VERSION)
#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,
/* Verify and set private xform parameters */
int
isal_comp_set_priv_xform_parameters(struct isal_priv_xform *priv_xform,
@@
-148,6
+147,7
@@
isal_comp_set_priv_xform_parameters(struct isal_priv_xform *priv_xform,
break;
/* Level 3 or higher requested */
default:
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)) {
/* Check for AVX512, to use ISA-L level 3 */
if (rte_cpu_get_flag_enabled(
RTE_CPUFLAG_AVX512F)) {
@@
-163,7
+163,9
@@
isal_comp_set_priv_xform_parameters(struct isal_priv_xform *priv_xform,
RTE_COMP_ISAL_LEVEL_THREE;
priv_xform->level_buffer_size =
ISAL_DEF_LVL3_DEFAULT;
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."
ISAL_PMD_LOG(DEBUG, "Requested ISA-L level"
" 3 or above; Level 3 optimized"
" for AVX512 & AVX2 only."
@@
-752,10
+754,4
@@
static struct rte_vdev_driver compdev_isal_pmd_drv = {
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_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);