Skip to contentSkip to conversation

crytodev: make logtype internal

PATCH In review Stephen Hemminger 2 participants 2 messages Dec 12, 2023 – Dec 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crytodev: make logtype internal

The logtype does not need to be exported as API.

Fixes be618b81545e ("cryptodev: convert to dynamic logtype")
---
 lib/cryptodev/version.map | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/cryptodev/version.map +1 -1
index 54360a5da538..bde369eb27a6 100644
@@ -44,7 +44,6 @@ DPDK_24 {
 	rte_cryptodev_get_sec_ctx;
 	rte_cryptodev_info_get;
 	rte_cryptodev_is_valid_dev;
-	rte_cryptodev_logtype;
 	rte_cryptodev_name_get;
 	rte_cryptodev_queue_pair_count;
 	rte_cryptodev_queue_pair_setup;
@@ -91,6 +90,7 @@ INTERNAL {
 
 	cryptodev_fp_ops_reset;
 	cryptodev_fp_ops_set;
+	rte_cryptodev_logtype;
 	rte_cryptodev_allocate_driver;
 	rte_cryptodev_pmd_allocate;
 	rte_cryptodev_pmd_callback_process;
Signature · 1 line
2.42.0
#1 lore raw
Quoted 2 lines · Stephen Hemminger

The logtype does not need to be exported as API.

The CDEV_* macros are exported in the public header.
If some external users use them and we take this patch, the user binary will point at a symbol for which we have no safety barrier (wrt symbol removal / changes).

Moving those macros to cryptodev_pmd.h is a prerequisite.

Signature · 1 line
David Marchand