File tree 5 files changed +10
-3
lines changed
5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ struct rte_crypto_fp_ops rte_crypto_fp_ops[RTE_CRYPTO_MAX_DEVS];
49
49
/* spinlock for crypto device callbacks */
50
50
static rte_spinlock_t rte_cryptodev_cb_lock = RTE_SPINLOCK_INITIALIZER ;
51
51
52
+ RTE_LOG_REGISTER_DEFAULT (rte_cryptodev_logtype , INFO );
53
+
52
54
/**
53
55
* The user application callback description.
54
56
*
Original file line number Diff line number Diff line change @@ -28,8 +28,13 @@ extern "C" {
28
28
29
29
extern const char * * rte_cyptodev_names ;
30
30
31
- /* Logging Macros */
31
+ /**
32
+ * @internal Logtype used for cryptodev related messages.
33
+ */
34
+ extern int rte_cryptodev_logtype ;
35
+ #define RTE_LOGTYPE_CRYPTODEV rte_cryptodev_logtype
32
36
37
+ /* Logging Macros */
33
38
#define CDEV_LOG_ERR (...) \
34
39
RTE_LOG(ERR, CRYPTODEV, \
35
40
RTE_FMT("%s() line %u: " RTE_FMT_HEAD(__VA_ARGS__,) "\n", \
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ DPDK_24 {
44
44
rte_cryptodev_get_sec_ctx;
45
45
rte_cryptodev_info_get;
46
46
rte_cryptodev_is_valid_dev;
47
+ rte_cryptodev_logtype;
47
48
rte_cryptodev_name_get;
48
49
rte_cryptodev_queue_pair_count;
49
50
rte_cryptodev_queue_pair_setup;
Original file line number Diff line number Diff line change @@ -356,7 +356,6 @@ static const struct logtype logtype_strings[] = {
356
356
{RTE_LOGTYPE_PORT , "lib.port" },
357
357
{RTE_LOGTYPE_TABLE , "lib.table" },
358
358
{RTE_LOGTYPE_PIPELINE , "lib.pipeline" },
359
- {RTE_LOGTYPE_CRYPTODEV , "lib.cryptodev" },
360
359
{RTE_LOGTYPE_EVENTDEV , "lib.eventdev" },
361
360
{RTE_LOGTYPE_USER1 , "user1" },
362
361
{RTE_LOGTYPE_USER2 , "user2" },
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ extern "C" {
43
43
#define RTE_LOGTYPE_TABLE 14 /**< Log related to table. */
44
44
#define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */
45
45
/* was RTE_LOGTYPE_MBUF */
46
- #define RTE_LOGTYPE_CRYPTODEV 17 /**< Log related to cryptodev. */
46
+ /* was RTE_LOGTYPE_CRYPTODEV */
47
47
/* was RTE_LOGTYPE_EFD */
48
48
#define RTE_LOGTYPE_EVENTDEV 19 /**< Log related to eventdev. */
49
49
/* was RTE_LOGTYPE_GSO */
You can’t perform that action at this time.
0 commit comments