5#ifndef _VHOST_CRYPTO_H_
6#define _VHOST_CRYPTO_H_
18#define VHOST_CRYPTO_MBUF_POOL_SIZE (8192)
19#define VHOST_CRYPTO_MAX_BURST_SIZE (64)
20#define VHOST_CRYPTO_MAX_DATA_SIZE (4096)
21#define VHOST_CRYPTO_SESSION_MAP_ENTRIES (1024)
23#define VIRTIO_CRYPTO_MAX_NUM_BURST_VQS (64)
24#define VHOST_CRYPTO_MAX_IV_LEN (32)
25#define VHOST_CRYPTO_MAX_N_DESC (32)
27enum rte_vhost_crypto_zero_copy {
28 RTE_VHOST_CRYPTO_ZERO_COPY_DISABLE = 0,
29 RTE_VHOST_CRYPTO_ZERO_COPY_ENABLE = 1,
30 RTE_VHOST_CRYPTO_MAX_ZERO_COPY_OPTIONS
42rte_vhost_crypto_driver_start(
const char *path);
61rte_vhost_crypto_create(
int vid, uint8_t cryptodev_id,
75rte_vhost_crypto_free(
int vid);
89rte_vhost_crypto_set_zero_copy(
int vid,
enum rte_vhost_crypto_zero_copy option);
109rte_vhost_crypto_fetch_requests(
int vid, uint32_t qid,
130rte_vhost_crypto_finalize_requests(
struct rte_crypto_op **ops,
131 uint16_t nb_ops,
int *callfds, uint16_t *nb_callfds);