cryptodev: remove duplicated device name length
Two macros were defined in cryptodev, to serve the same purpose: RTE_CRYPTODEV_NAME_LEN (in the config file) and RTE_CRYPTODEV_NAME_MAX_LEN (in the rte_cryptodev.h file). Since the second one is part of the external API, the first one has been removed, avoiding duplications. Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Tomasz Duszynski <tdu@semihalf.com>
This commit is contained in:
parent
0bca1d2678
commit
d1be197787
@ -3,6 +3,7 @@
|
||||
#define _CPERF_OPTIONS_
|
||||
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev.h>
|
||||
|
||||
#define CPERF_PTEST_TYPE ("ptest")
|
||||
#define CPERF_SILENT ("silent")
|
||||
@ -104,7 +105,7 @@ struct cperf_options {
|
||||
|
||||
uint16_t digest_sz;
|
||||
|
||||
char device_type[RTE_CRYPTODEV_NAME_LEN];
|
||||
char device_type[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
enum cperf_op_type op_type;
|
||||
|
||||
char *test_file;
|
||||
|
@ -468,7 +468,6 @@ CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW=n
|
||||
CONFIG_RTE_LIBRTE_CRYPTODEV=y
|
||||
CONFIG_RTE_LIBRTE_CRYPTODEV_DEBUG=n
|
||||
CONFIG_RTE_CRYPTO_MAX_DEVS=64
|
||||
CONFIG_RTE_CRYPTODEV_NAME_LEN=64
|
||||
|
||||
#
|
||||
# Compile PMD for ARMv8 Crypto device
|
||||
|
@ -56,7 +56,7 @@ struct aesni_gcm_qp {
|
||||
/**< Session Mempool */
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
uint8_t temp_digest[DIGEST_LENGTH_MAX];
|
||||
/**< Buffer used to store the digest generated
|
||||
|
@ -410,7 +410,7 @@ aesni_mb_pmd_qp_create_processed_ops_ring(struct aesni_mb_qp *qp,
|
||||
const char *str, unsigned int ring_size, int socket_id)
|
||||
{
|
||||
struct rte_ring *r;
|
||||
char ring_name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char ring_name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
|
||||
unsigned int n = snprintf(ring_name, sizeof(ring_name),
|
||||
"%s_%s",
|
||||
|
@ -130,7 +130,7 @@ struct aesni_mb_private {
|
||||
struct aesni_mb_qp {
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
const struct aesni_mb_op_fns *op_fns;
|
||||
/**< Vector mode dependent pointer table of the multi-buffer APIs */
|
||||
|
@ -120,7 +120,7 @@ struct armv8_crypto_qp {
|
||||
/**< Session Mempool */
|
||||
struct rte_cryptodev_stats stats;
|
||||
/**< Queue pair statistics */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
uint8_t temp_digest[DIGEST_LENGTH_MAX];
|
||||
/**< Buffer used to store the digest generated
|
||||
|
@ -44,7 +44,7 @@ struct kasumi_private {
|
||||
struct kasumi_qp {
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
struct rte_ring *processed_ops;
|
||||
/**< Ring for placing processed ops */
|
||||
|
@ -558,7 +558,7 @@ mrvl_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
|
||||
int socket_id, struct rte_mempool *session_pool)
|
||||
{
|
||||
struct mrvl_crypto_qp *qp = NULL;
|
||||
char match[RTE_CRYPTODEV_NAME_LEN];
|
||||
char match[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
unsigned int n;
|
||||
|
||||
/* Allocate the queue pair data structure. */
|
||||
|
@ -39,7 +39,7 @@ struct null_crypto_private {
|
||||
struct null_crypto_qp {
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
struct rte_ring *processed_pkts;
|
||||
/**< Ring for placing process packets */
|
||||
|
@ -70,7 +70,7 @@ struct openssl_private {
|
||||
struct openssl_qp {
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
struct rte_ring *processed_ops;
|
||||
/**< Ring for placing process packets */
|
||||
|
@ -44,7 +44,7 @@ struct snow3g_private {
|
||||
struct snow3g_qp {
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
struct rte_ring *processed_ops;
|
||||
/**< Ring for placing processed ops */
|
||||
|
@ -45,7 +45,7 @@ struct zuc_private {
|
||||
struct zuc_qp {
|
||||
uint16_t id;
|
||||
/**< Queue Pair Identifier */
|
||||
char name[RTE_CRYPTODEV_NAME_LEN];
|
||||
char name[RTE_CRYPTODEV_NAME_MAX_LEN];
|
||||
/**< Unique Queue Pair Name */
|
||||
struct rte_ring *processed_ops;
|
||||
/**< Ring for placing processed ops */
|
||||
|
Loading…
Reference in New Issue
Block a user