From: Jan Blunck Date: Wed, 12 Jul 2017 20:15:37 +0000 (-0400) Subject: cryptodev: deprecate vdev create function X-Git-Tag: spdx-start~2353 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7109bec9eaf6a12b80688b4318e1e7c2a88ed721;p=dpdk.git cryptodev: deprecate vdev create function The function rte_cryptodev_create_vdev is an alias for rte_vdev_init() which is scheduled to move out of the rte_eal library. Lets deprecate this function to be able to remove it from the cryptodev library in 17.11. Signed-off-by: Jan Blunck Acked-by: Pablo de Lara Acked-by: Declan Doherty Acked-by: Sergio Gonzalez Monroy --- diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 257dcba323..3c687b1b80 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -64,3 +64,8 @@ Deprecation Notices be removed in 17.11: - ``rte_eal_parse_devargs_str``, replaced by ``rte_eal_devargs_parse`` + +* cryptodev: the following function is deprecated starting from 17.08 and will + be removed in 17.11: + + - ``rte_cryptodev_create_vdev`` diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 508b835944..7ec9c4bc4b 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);