From e297a47fb365f6970c9fc4c4c981b4ca8dcd11b4 Mon Sep 17 00:00:00 2001 From: Billy O'Mahony Date: Tue, 24 Oct 2017 15:53:27 +0100 Subject: [PATCH] cryptodev: extend info get function documentation Extend the Doxygen documentation of rte_cryptodev_info_get, to describe how it returns the capabilities of a device. Signed-off-by: Billy O'Mahony Acked-by: Fiona Trahe --- lib/librte_cryptodev/rte_cryptodev.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 9037534f90..a74d9b92bd 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -688,6 +688,11 @@ rte_cryptodev_stats_reset(uint8_t dev_id); * @param dev_info A pointer to a structure of type * *rte_cryptodev_info* to be filled with the * contextual information of the device. + * + * @note The capabilities field of dev_info is set to point to the first + * element of an array of struct rte_cryptodev_capabilities. The element after + * the last valid element has it's op field set to + * RTE_CRYPTO_OP_TYPE_UNDEFINED. */ extern void rte_cryptodev_info_get(uint8_t dev_id, struct rte_cryptodev_info *dev_info); -- 2.20.1