compress/isal: add skeleton ISA-L compression PMD
[dpdk.git] / drivers / compress / isal / isal_compress_pmd.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4
5 #include <rte_bus_vdev.h>
6 #include <rte_compressdev_pmd.h>
7
8 /** Remove compression device */
9 static int
10 compdev_isal_remove_dev(struct rte_vdev_device *vdev __rte_unused)
11 {
12         return 0;
13 }
14
15 /** Initialise ISA-L compression device */
16 static int
17 compdev_isal_probe(struct rte_vdev_device *dev __rte_unused)
18 {
19         return 0;
20 }
21
22 static struct rte_vdev_driver compdev_isal_pmd_drv = {
23         .probe = compdev_isal_probe,
24         .remove = compdev_isal_remove_dev,
25 };
26
27 RTE_PMD_REGISTER_VDEV(COMPDEV_NAME_ISAL_PMD, compdev_isal_pmd_drv);
28 RTE_PMD_REGISTER_PARAM_STRING(COMPDEV_NAME_ISAL_PMD,
29         "socket_id=<int>");