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_SESSION_MAP_ENTRIES (1024)
12 #define VIRTIO_CRYPTO_MAX_NUM_BURST_VQS (64)
14 enum rte_vhost_crypto_zero_copy {
15 RTE_VHOST_CRYPTO_ZERO_COPY_DISABLE = 0,
16 RTE_VHOST_CRYPTO_ZERO_COPY_ENABLE = 1,
17 RTE_VHOST_CRYPTO_MAX_ZERO_COPY_OPTIONS
38 int __rte_experimental
39 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);