From fdadc4f92b3e6ca692a2f23b683e6fe1e977f724 Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Fri, 19 Jan 2018 11:42:34 +0000 Subject: [PATCH] ethdev: add security context API documentation Added missing doxygen for rte_eth_dev_get_sec_ctx and moved the declaration to the proper place. Fixes: 4c270218aa26 ("ethdev: support security APIs") Signed-off-by: Radu Nicolau Reviewed-by: Ferruh Yigit --- lib/librte_ether/rte_ethdev.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 8f26f50b13..2729e2b43e 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1731,9 +1731,6 @@ struct rte_eth_dev { void *security_ctx; /**< Context for security ops */ } __rte_cache_aligned; -void * -rte_eth_dev_get_sec_ctx(uint8_t port_id); - struct rte_eth_dev_sriov { uint8_t active; /**< SRIOV is active with 16, 32 or 64 pools */ uint8_t nb_q_per_pool; /**< rx queue number per pool */ @@ -4618,6 +4615,18 @@ int rte_eth_dev_adjust_nb_rx_tx_desc(uint16_t port_id, int rte_eth_dev_pool_ops_supported(uint16_t port_id, const char *pool); +/** + * Get the security context for the Ethernet device. + * + * @param port_id + * Port identifier of the Ethernet device + * @return + * - NULL on error. + * - pointer to security context on success. + */ +void * +rte_eth_dev_get_sec_ctx(uint8_t port_id); + #ifdef __cplusplus } #endif -- 2.20.1