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
40 rte_vhost_crypto_create(
int vid, uint8_t cryptodev_id,
56 rte_vhost_crypto_free(
int vid);
71 rte_vhost_crypto_set_zero_copy(
int vid,
enum rte_vhost_crypto_zero_copy option);
92 rte_vhost_crypto_fetch_requests(
int vid, uint32_t qid,
114 rte_vhost_crypto_finalize_requests(
struct rte_crypto_op **ops,
115 uint16_t nb_ops,
int *callfds, uint16_t *nb_callfds);