X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_cryptodev%2Frte_cryptodev.h;h=fd0e3f1972ef9dfef80e84106bf819e08b733810;hb=761fd95d82a4b5ee035a5140030e22d2581335ea;hp=5225a5b858eb2fe686327dc5c50ae50f422f1a0e;hpb=0c2173c166da8abba93ed4a2f602ad523ee7a59a;p=dpdk.git diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 5225a5b858..fd0e3f1972 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -462,6 +462,19 @@ rte_cryptodev_create_vdev(const char *name, const char *args); extern int rte_cryptodev_get_dev_id(const char *name); +/** + * Get the crypto device name given a device identifier. + * + * @param dev_id + * The identifier of the device + * + * @return + * - Returns crypto device name. + * - Returns NULL if crypto device is not present. + */ +extern const char * +rte_cryptodev_name_get(uint8_t dev_id); + /** * Get the total number of crypto devices that have been successfully * initialised.