crypto/scheduler: fix Doxygen comments
PATCH v2 1/1 crypto/scheduler: fix Doxygen comments
This patch adds the missing doxygen comments and updated inline comments to cryptodev scheduler
---
v2:
- fixed typo
doc/api/doxy-api-index.md | 3 +- doc/api/doxy-api.conf | 1 + drivers/crypto/scheduler/rte_cryptodev_scheduler.h | 133 ++++++++++++++------- 3 files changed, 94 insertions(+), 43 deletions(-)
doc/api/doxy-api-index.md +2 -1
@@ -51,7 +51,8 @@ There are many libraries, so their headers may be grouped by topics: [vhost] (@ref rte_vhost.h), [KNI] (@ref rte_kni.h), [ixgbe] (@ref rte_pmd_ixgbe.h), - [i40e] (@ref rte_pmd_i40e.h) + [i40e] (@ref rte_pmd_i40e.h), + [crypto_scheduler] (@ref rte_cryptodev_scheduler.h) - **memory**: [memseg] (@ref rte_memory.h),
doc/api/doxy-api.conf +1 -0
@@ -30,6 +30,7 @@ PROJECT_NAME = DPDK INPUT = doc/api/doxy-api-index.md \ + drivers/crypto/scheduler \ drivers/net/bonding \ drivers/net/i40e \ drivers/net/ixgbe \
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +91 -42
243 lines not on this page · raw message
Signature · 1 line
2.7.4
Hi Fan,
Quoted 15 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Fan Zhang
Sent: Wednesday, April 12, 2017 3:11 PM
To: [email protected]
Cc: De Lara Guarch, Pablo; [email protected]; Mcnamara, John
Subject: [dpdk-dev] [PATCH v2]crypto/scheduler: fix Doxygen commentsThis patch adds the missing doxygen comments and updated inline comments to cryptodev scheduler
Fixes d58a3f312545 ("crypto/scheduler: add documentation")Signed-off-by Fan Zhang <[email protected]>---
...
Quoted 25 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +8
-0@@ -34,6 +34,18 @@#ifndef _RTE_CRYPTO_SCHEDULER_H#define _RTE_CRYPTO_SCHEDULER_H +/** +* @file rte_cryptodev_scheduler.h +* +* RTE Cryptodev Scheduler Device +* +* The RTE Cryptodev Scheduler Device allows the aggregation of multiple (slave) +* Cryptodevs into a single logical crypto device, and the scheduling the +* crypto operations to the slaves based on the mode of the specified mode of
+ * operation specified and supported. This implementation supports 3 modes of
+ * operation: round robin, packet-size based, and fail-over.
+ */drivers/crypto/scheduler/rte_cryptodev_scheduler.h +1
-0+#include "rte_cryptodev_scheduler_operations.h" #ifdef __cplusplus
drivers/crypto/scheduler/rte_cryptodev_scheduler.h extern "C" { · line 58
Quoted 2 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +0
-0@@ -45,19 +57,21 @@ extern "C" {#define RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES (8)#endif
Remove "<" before this macro: /** Maximum number... */).
drivers/crypto/scheduler/rte_cryptodev_scheduler.h extern "C" { · line 54
Quoted 11 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +3
-4-/* round-robin scheduling mode */ +/** round-robin scheduling mode string */ #define SCHEDULER_MODE_NAME_ROUND_ROBIN round-robin -/* packet-size based distribution scheduling mode */ +/** packet-size based distribution scheduling mode string */ #define SCHEDULER_MODE_NAME_PKT_SIZE_DISTR packet-size-distr -/* fail-over mode */ +/** fail-over scheduling mode string */ #define SCHEDULER_MODE_NAME_FAIL_OVER fail-over -/**
Start with capital letters (same for other comments in the file)
...
Quoted 4 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +0
-0int rte_cryptodev_scheduler_ordering_get (uint8_t scheduler_id);@@ -192,15 +238,13 @@ rte_cryptodev_scheduler_ordering_get(uint8_t scheduler_id);
drivers/crypto/scheduler/rte_cryptodev_scheduler.h rte_cryptodev_scheduler_ordering_get(uint8_t · line 243
Quoted 10 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +2
-5* @param scheduler_id * The target scheduler device ID * @param slaves -* If successful, the function will write back -* all slaves' device IDs to it. This -* parameter SHALL either be an uint8_t array -* of RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES -* elements or NULL. +* If successful, the function will write back all slaves' device IDs to it. +* This parameter SHALL either be an uint8_t array of
SHALL -> will
Quoted 26 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +2
-1+* RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES elements or NULL. * * @return * - non-negative number: the number of slaves attached -* - negative integer if error occurs. +* - -ENOTSUP if the operation is not supported. */ int rte_cryptodev_scheduler_slaves_get(uint8_t
scheduler_id,uint8_t
*slaves);drivers/crypto/scheduler/rte_cryptodev_scheduler.h +4
-3@@ -211,16 +255,21 @@ typedef uint16_t (*rte_cryptodev_scheduler_burst_enqueue_t)(void *qp_ctx, typedef uint16_t (*rte_cryptodev_scheduler_burst_dequeue_t)(void *qp_ctx, struct rte_crypto_op **ops, uint16_t nb_ops); +/** The data structure associated with each mode of scheduler. */ struct rte_cryptodev_scheduler { -const char *name; -const char *description; -enum rte_cryptodev_scheduler_mode mode; +const char *name;/**< scheduler name */ +const char *description;/**< scheduler description */ +enum rte_cryptodev_scheduler_mode mode;/**< scheduling mode */
drivers/crypto/scheduler/rte_cryptodev_scheduler.h typedef uint16_t (*rte_cryptodev_scheduler_burst_enqueue_t)(void *qp_ctx, · line 264
Quoted 1 line
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +1
-0+/**< pointer to scheduler operation structure */
The description has to go after the variable, not before.
Quoted 15 lines
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +3
-1struct rte_cryptodev_scheduler_ops *ops; }; +/** round-robin mode scheduler */ extern struct rte_cryptodev_scheduler *roundrobin_scheduler; +/** packet-size based distribution mode scheduler */ extern struct rte_cryptodev_scheduler *pkt_size_based_distr_scheduler; +/** fail-over mode scheduler */ extern struct rte_cryptodev_scheduler *failover_scheduler;#ifdef __cplusplus --2.7.4
PATCH v3 1/1 crypto/scheduler: fix Doxygen comments
In reply to Fan ZhangThis patch adds the missing doxygen comments and updated inline comments to cryptodev scheduler
---
v3:
- updated based on the comments
v2:
- fixed typo
doc/api/doxy-api-index.md | 3 +- doc/api/doxy-api.conf | 1 + drivers/crypto/scheduler/rte_cryptodev_scheduler.h | 137 ++++++++++++++------- 3 files changed, 96 insertions(+), 45 deletions(-)
doc/api/doxy-api-index.md +2 -1
@@ -51,7 +51,8 @@ There are many libraries, so their headers may be grouped by topics: [vhost] (@ref rte_vhost.h), [KNI] (@ref rte_kni.h), [ixgbe] (@ref rte_pmd_ixgbe.h), - [i40e] (@ref rte_pmd_i40e.h) + [i40e] (@ref rte_pmd_i40e.h), + [crypto_scheduler] (@ref rte_cryptodev_scheduler.h) - **memory**: [memseg] (@ref rte_memory.h),
doc/api/doxy-api.conf +1 -0
@@ -30,6 +30,7 @@ PROJECT_NAME = DPDK INPUT = doc/api/doxy-api-index.md \ + drivers/crypto/scheduler \ drivers/net/bonding \ drivers/net/i40e \ drivers/net/ixgbe \
drivers/crypto/scheduler/rte_cryptodev_scheduler.h +93 -44
257 lines not on this page · raw message
Signature · 1 line
2.7.4
De Lara Guarch, Pablo
AppliedQuoted 9 lines
-----Original Message-----
From: Zhang, Roy Fan
Sent: Tuesday, April 18, 2017 12:33 PM
To: [email protected]
Cc: De Lara Guarch, Pablo
Subject: [PATCH v3]crypto/scheduler: fix Doxygen comments
Quoted 7 lines
This patch adds the missing doxygen comments and updated inline comments to cryptodev scheduler
Fixes d58a3f312545 ("crypto/scheduler: add documentation")Signed-off-by Fan Zhang <[email protected]>Acked-by John McNamara <[email protected]>
Applied to dpdk-next-crypto.
Thanks,
Pablo