X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_cryptodev%2Frte_cryptodev.h;h=5225a5b858eb2fe686327dc5c50ae50f422f1a0e;hb=effd3b9fcf3841869e5035ac08ff25b1807c3f15;hp=756c00bbbca256aae1e841614ad38ed294ed5bf1;hpb=7b3880fdcc65329ecb1acf2ed87e4ab708435587;p=dpdk.git diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 756c00bbbc..5225a5b858 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -434,6 +434,8 @@ struct rte_cryptodev_stats { /**< Max length of name of crypto PMD */ /** + * @deprecated + * * Create a virtual crypto device * * @param name Cryptodev PMD name of device to be created. @@ -444,6 +446,7 @@ struct rte_cryptodev_stats { * which will be between 0 and rte_cryptodev_count(). * - In the case of a failure, returns -1. */ +__rte_deprecated extern int rte_cryptodev_create_vdev(const char *name, const char *args); @@ -924,7 +927,9 @@ rte_cryptodev_sym_session_free(struct rte_cryptodev_sym_session *sess); * * @return * - On success, zero. - * - On failure, a negative value. + * - -EINVAL if input parameters are invalid. + * - -ENOTSUP if crypto device does not support the crypto transform. + * - -ENOMEM if the private session could not be allocated. */ int rte_cryptodev_sym_session_init(uint8_t dev_id, @@ -1020,26 +1025,6 @@ int rte_cryptodev_driver_id_get(const char *name); */ const char *rte_cryptodev_driver_name_get(uint8_t driver_id); -/** - * @internal - * Allocate Cryptodev driver. - * - * @param driver - * Pointer to rte_driver. - * @return - * The driver type identifier - */ -uint8_t rte_cryptodev_allocate_driver(const struct rte_driver *driver); - - -#define RTE_PMD_REGISTER_CRYPTO_DRIVER(drv, driver_id)\ -RTE_INIT(init_ ##driver_id);\ -static void init_ ##driver_id(void)\ -{\ - driver_id = rte_cryptodev_allocate_driver(&(drv).driver);\ -} - - #ifdef __cplusplus } #endif