crypto/qat: remove configurable max number of sessions
[dpdk.git] / drivers / crypto / qat / qat_sym_pmd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2018 Intel Corporation
3  */
4
5 #ifndef _QAT_SYM_PMD_H_
6 #define _QAT_SYM_PMD_H_
7
8 #include <rte_cryptodev.h>
9
10 #include "qat_sym_capabilities.h"
11 #include "qat_device.h"
12
13
14 /**< Intel(R) QAT Symmetric Crypto PMD device name */
15 #define CRYPTODEV_NAME_QAT_SYM_PMD      crypto_qat
16 #define QAT_SYM_PMD_MAX_NB_SESSIONS     2048
17
18 extern uint8_t cryptodev_qat_driver_id;
19
20 /** private data structure for a QAT device.
21  * This QAT device is a device offering only symmetric crypto service,
22  * there can be one of these on each qat_pci_device (VF),
23  * in future there may also be private data structures for other services.
24  */
25 struct qat_sym_dev_private {
26         struct qat_pci_device *qat_dev;
27         /**< The qat pci device hosting the service */
28         uint8_t sym_dev_id;
29         /**< Device instance for this rte_cryptodev */
30         const struct rte_cryptodev_capabilities *qat_dev_capabilities;
31         /* QAT device symmetric crypto capabilities */
32 };
33
34
35 int
36 qat_sym_dev_create(struct qat_pci_device *qat_pci_dev);
37
38 int
39 qat_sym_dev_destroy(struct qat_pci_device *qat_pci_dev);
40 #endif /* _QAT_SYM_PMD_H_ */