DPDK patches and discussions
 help / color / mirror / Atom feed
* Comments/Doc error for CRYPTODEV of DPDK
@ 2024-01-18  8:58 Wang, Songyi
  2024-01-19  7:51 ` David Marchand
  0 siblings, 1 reply; 5+ messages in thread
From: Wang, Songyi @ 2024-01-18  8:58 UTC (permalink / raw)
  To: dev; +Cc: Dong, Yao

[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]

Hi maintainer of DPDK,

I've noticed an error on comment of DPDK version 23.11 rte_cryptodev.h: 928-930

/**
 * Create a symmetric session mempool.
 *
 * @param name
 *   The unique mempool name.
 * @param nb_elts
 *   The number of elements in the mempool.
 * @param elt_size
 *   The size of the element. This value will be ignored if it is smaller than
 *   the minimum session header size required for the system. For the user who
 *   want to use the same mempool for sym session and session private data it
 *   can be the maximum value of all existing devices' private data and session
 *   header sizes.
 * @param cache_size
 *   The number of per-lcore cache elements
 * @param priv_size
 *   The private data size of each session.
 * @param socket_id
 *   The *socket_id* argument is the socket identifier in the case of
 *   NUMA. The value can be *SOCKET_ID_ANY* if there is no NUMA
 *   constraint for the reserved zone.
 *
 * @return
 *  - On success return size of the session
 *  - On failure returns 0
 */
__rte_experimental
struct rte_mempool *
rte_cryptodev_sym_session_pool_create(const char *name, uint32_t nb_elts,
    uint32_t elt_size, uint32_t cache_size, uint16_t priv_size,
    int socket_id);


But the return value of this function seems to be a pointer to the mempool created or NULL pointer, instead of the mempool size.

Could you please check it?

Thank you and BR,
Songyi

[-- Attachment #2: Type: text/html, Size: 13727 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-19  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18  8:58 Comments/Doc error for CRYPTODEV of DPDK Wang, Songyi
2024-01-19  7:51 ` David Marchand
2024-01-19  8:08   ` [EXT] " Akhil Goyal
2024-01-19  8:27     ` Akhil Goyal
2024-01-19  8:32       ` Wang, Songyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).