-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compress/isal: add skeleton ISA-L compression PMD
Adding basic skeleton of the ISA-L compression driver. No compression functionality, but lays the foundation for operations in the rest of the patchset. The ISA-L compression driver utilizes Intel's ISA-L compression library and compressdev API. Signed-off-by: Lee Daly <lee.daly@intel.com> Reviewed-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
- Loading branch information
1 parent
8723590
commit 3c32e89
Showing
13 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright(c) 2018 Intel Corporation | ||
|
||
include $(RTE_SDK)/mk/rte.vars.mk | ||
|
||
DIRS-$(CONFIG_RTE_LIBRTE_PMD_ISAL) += isal | ||
|
||
include $(RTE_SDK)/mk/rte.subdir.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright(c) 2018 Intel Corporation | ||
|
||
include $(RTE_SDK)/mk/rte.vars.mk | ||
|
||
# library name | ||
LIB = librte_pmd_isal_comp.a | ||
|
||
# build flags | ||
CFLAGS += -O3 | ||
CFLAGS += $(WERROR_FLAGS) | ||
CFLAGS += -DALLOW_EXPERIMENTAL_API | ||
|
||
# external library dependencies | ||
LDLIBS += -lisal | ||
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring | ||
LDLIBS += -lrte_compressdev | ||
LDLIBS += -lrte_bus_vdev | ||
|
||
# library version | ||
LIBABIVER := 1 | ||
|
||
# versioning export map | ||
EXPORT_MAP := rte_pmd_isal_version.map | ||
|
||
# library source files | ||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_ISAL) += isal_compress_pmd.c | ||
|
||
# export include files | ||
include $(RTE_SDK)/mk/rte.lib.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* SPDX-License-Identifier: BSD-3-Clause | ||
* Copyright(c) 2018 Intel Corporation | ||
*/ | ||
|
||
#include <rte_bus_vdev.h> | ||
#include <rte_compressdev_pmd.h> | ||
|
||
/** Remove compression device */ | ||
static int | ||
compdev_isal_remove_dev(struct rte_vdev_device *vdev __rte_unused) | ||
{ | ||
return 0; | ||
} | ||
|
||
/** Initialise ISA-L compression device */ | ||
static int | ||
compdev_isal_probe(struct rte_vdev_device *dev __rte_unused) | ||
{ | ||
return 0; | ||
} | ||
|
||
static struct rte_vdev_driver compdev_isal_pmd_drv = { | ||
.probe = compdev_isal_probe, | ||
.remove = compdev_isal_remove_dev, | ||
}; | ||
|
||
RTE_PMD_REGISTER_VDEV(COMPDEV_NAME_ISAL_PMD, compdev_isal_pmd_drv); | ||
RTE_PMD_REGISTER_PARAM_STRING(COMPDEV_NAME_ISAL_PMD, | ||
"socket_id=<int>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2018 Intel Corporation | ||
|
||
dep = dependency('libisal', required: false) | ||
if not dep.found() | ||
build =false | ||
endif | ||
|
||
deps += 'bus_vdev' | ||
sources = files('isal_compress_pmd.c') | ||
ext_deps += dep | ||
pkgconfig_extra_libs += '-lisal' | ||
|
||
allow_experimental_apis = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DPDK_18.05 { | ||
local: *; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright(c) 2018 Intel Corporation | ||
|
||
drivers = ['isal'] | ||
|
||
std_deps = ['compressdev'] # compressdev pulls in all other needed deps | ||
config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' | ||
driver_name_fmt = 'rte_pmd_@0@' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters