5 #ifndef _VHOST_CRYPTO_H_
6 #define _VHOST_CRYPTO_H_
8 #define VHOST_CRYPTO_MBUF_POOL_SIZE (8192)
9 #define VHOST_CRYPTO_MAX_BURST_SIZE (64)
10 #define VHOST_CRYPTO_MAX_DATA_SIZE (4096)
11 #define VHOST_CRYPTO_SESSION_MAP_ENTRIES (1024)
13 #define VIRTIO_CRYPTO_MAX_NUM_BURST_VQS (64)
14 #define VHOST_CRYPTO_MAX_IV_LEN (32)
15 #define VHOST_CRYPTO_MAX_N_DESC (32)
17 enum rte_vhost_crypto_zero_copy {
18 RTE_VHOST_CRYPTO_ZERO_COPY_DISABLE = 0,
19 RTE_VHOST_CRYPTO_ZERO_COPY_ENABLE = 1,
20 RTE_VHOST_CRYPTO_MAX_ZERO_COPY_OPTIONS
40 int __rte_experimental
41 rte_vhost_crypto_create(
int vid, uint8_t cryptodev_id,
53 int __rte_experimental
54 rte_vhost_crypto_free(
int vid);
67 int __rte_experimental
68 rte_vhost_crypto_set_zero_copy(
int vid,
enum rte_vhost_crypto_zero_copy option);
87 uint16_t __rte_experimental
88 rte_vhost_crypto_fetch_requests(
int vid, uint32_t qid,
108 uint16_t __rte_experimental
109 rte_vhost_crypto_finalize_requests(
struct rte_crypto_op **ops,
110 uint16_t nb_ops,
int *callfds, uint16_t *nb_callfds);