Skip to contentSkip to conversation

build: fix missing crypto vec limits in version

PATCH In review Volodymyr Fialko 5 participants 7 messages Dec 6, 2022 – Jan 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: fix missing crypto vec limits in version

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")
---
 lib/eventdev/version.map | 1 +
 1 file changed, 1 insertion(+)
lib/eventdev/version.map +1 -0
index dd63ec6f68..1a7fffd17f 100644
@@ -20,6 +20,7 @@ DPDK_23 {
 	rte_event_crypto_adapter_stats_get;
 	rte_event_crypto_adapter_stats_reset;
 	rte_event_crypto_adapter_stop;
+	rte_event_crypto_adapter_vector_limits_get;
 	rte_event_dequeue_timeout_ticks;
 	rte_event_dev_attr_get;
 	rte_event_dev_close;
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Volodymyr Fialko

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")
---
  lib/eventdev/version.map | 1 +
  1 file changed, 1 insertion(+)
lib/eventdev/version.map +0 -0
index dd63ec6f68..1a7fffd17f 100644

lib/eventdev/version.map DPDK_23 { · line 26

Quoted 7 lines
lib/eventdev/version.map +1 -0
@@ -20,6 +20,7 @@ DPDK_23 {
  	rte_event_crypto_adapter_stats_get;
  	rte_event_crypto_adapter_stats_reset;
  	rte_event_crypto_adapter_stop;
+	rte_event_crypto_adapter_vector_limits_get;
  	rte_event_dequeue_timeout_ticks;
  	rte_event_dev_attr_get;
  	rte_event_dev_close;
#2 lore raw
Quoted 12 lines · Fan
Quoted 10 lines · Volodymyr Fialko

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")
---
  lib/eventdev/version.map | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines

lib/eventdev/version.map DPDK_23 { · line 26

Quoted 12 lines
lib/eventdev/version.map +1 -0
index dd63ec6f68..1a7fffd17f 100644
@@ -20,6 +20,7 @@ DPDK_23 {
      rte_event_crypto_adapter_stats_get;
      rte_event_crypto_adapter_stats_reset;
      rte_event_crypto_adapter_stop;
+     rte_event_crypto_adapter_vector_limits_get;
      rte_event_dequeue_timeout_ticks;
      rte_event_dev_attr_get;
      rte_event_dev_close;

+ @Thomas Monjalon @David Marchand

1) Sanity is failing as follows
### [PATCH] build: fix missing crypto vec limits in version

ERROR: symbol rte_event_crypto_adapter_vector_limits_get is added in the DPDK_23 section, but is expected to be added in the EXPERIMENTAL section of the version map

This patch is added in 22.07. New patches should be experimental. Right? If so, Please change to __rte_experimental and move EXPERIMENTAL section. If I am not missing anything.

[1]
[for-main]dell[dpdk-next-eventdev] $ git describe c1749bc5ee1 v22.07-473-gc1749bc5ee

2) Change git log as eventdev/crypto: .....

#3 lore raw

17/01/2023 17:25, Jerin Jacob:

Quoted 32 lines · Fan
Quoted 12 lines · Volodymyr Fialko
Quoted 10 lines

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")
---
  lib/eventdev/version.map | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines

lib/eventdev/version.map DPDK_23 { · line 26

Quoted 12 lines
lib/eventdev/version.map +1 -0
index dd63ec6f68..1a7fffd17f 100644
@@ -20,6 +20,7 @@ DPDK_23 {
      rte_event_crypto_adapter_stats_get;
      rte_event_crypto_adapter_stats_reset;
      rte_event_crypto_adapter_stop;
+     rte_event_crypto_adapter_vector_limits_get;
      rte_event_dequeue_timeout_ticks;
      rte_event_dev_attr_get;
      rte_event_dev_close;

+ @Thomas Monjalon @David Marchand

1) Sanity is failing as follows
### [PATCH] build: fix missing crypto vec limits in version

Quoted 7 lines

ERROR: symbol rte_event_crypto_adapter_vector_limits_get is added in the DPDK_23 section, but is expected to be added in the EXPERIMENTAL section of the version map

This patch is added in 22.07. New patches should be experimental. Right? If so, Please change to __rte_experimental and move EXPERIMENTAL section. If I am not missing anything.

Yes new functions should be experimental.
You need to add a comment in the .h
and the attribute __rte_experimental.

Such issue would have been seen earlier if the new function was used in a unit test or a test application.

#4 lore raw

PATCH v2 1/1 eventdev/crypto: fix missing crypto vec limits

In reply to Volodymyr Fialko

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")

---
v2:
- mark function as experimental

 lib/eventdev/rte_event_crypto_adapter.h | 4 ++++
 lib/eventdev/version.map                | 1 +
 2 files changed, 5 insertions(+)
lib/eventdev/rte_event_crypto_adapter.h +4 -0
index 83d154a6ce..2a69290097 100644
@@ -595,6 +595,9 @@ int
 rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id);
 
 /**
+ * @warning
+ * @b EXPERIMENTAL: this API may change without prior notice
+ *
  * Retrieve vector limits for a given event dev and crypto dev pair.
  * @see rte_event_crypto_adapter_vector_limits
  *
@@ -610,6 +613,7 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id);
  *  - 0: Success.
  *  - <0: Error code on failure.
  */
+__rte_experimental
 int rte_event_crypto_adapter_vector_limits_get(
 	uint8_t dev_id, uint16_t cdev_id,
 	struct rte_event_crypto_adapter_vector_limits *limits);
lib/eventdev/version.map +1 -0
index dd63ec6f68..c155af6d50 100644
@@ -110,6 +110,7 @@ EXPERIMENTAL {
 	rte_event_eth_rx_adapter_event_port_get;
 
 	# added in 22.07
+	rte_event_crypto_adapter_vector_limits_get;
 	rte_event_port_quiesce;
 	rte_event_queue_attr_set;
 
Signature · 1 line
2.34.1
Acked-by on v2 1/1
#5 lore raw

RE: [PATCH v2] eventdev/crypto: fix missing crypto vec limits

Quoted 61 lines

-----Original Message-----
From: Volodymyr Fialko <[email protected]>
Sent: Wednesday, January 18, 2023 11:22 AM
To: [email protected]; Gujjar, Abhinandan S <[email protected]>; Jerin Jacob <[email protected]>; Akhil Goyal <[email protected]>; Volodymyr Fialko <[email protected]>
Cc: [email protected]
Subject: [PATCH v2] eventdev/crypto: fix missing crypto vec limits

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")

---
v2:
- mark function as experimental

 lib/eventdev/rte_event_crypto_adapter.h | 4 ++++
 lib/eventdev/version.map                | 1 +
 2 files changed, 5 insertions(+)
lib/eventdev/rte_event_crypto_adapter.h +3 -0
index 83d154a6ce..2a69290097 100644
@@ -595,6 +595,9 @@ int
 rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t
 *event_port_id);
 
 /**
+ * @warning
+ * @b EXPERIMENTAL: this API may change without prior notice
+ *
  * Retrieve vector limits for a given event dev and crypto dev pair.
  * @see rte_event_crypto_adapter_vector_limits

*

lib/eventdev/rte_event_crypto_adapter.h +1 -0
@@ -610,6 +613,7 @@ rte_event_crypto_adapter_event_port_get(uint8_t id,
 uint8_t *event_port_id);
  *  - 0: Success.
  *  - <0: Error code on failure.
  */
+__rte_experimental
 int rte_event_crypto_adapter_vector_limits_get(
 	uint8_t dev_id, uint16_t cdev_id,

struct rte_event_crypto_adapter_vector_limits *limits); diff --git
a/lib/eventdev/version.map b/lib/eventdev/version.map index dd63ec6f68..c155af6d50 100644

lib/eventdev/version.map +1 -1
@@ -110,6 +110,7 @@ EXPERIMENTAL {
 	rte_event_eth_rx_adapter_event_port_get;
 
 	# added in 22.07
+	rte_event_crypto_adapter_vector_limits_get;
 	rte_event_port_quiesce;
 	rte_event_queue_attr_set;
 
--

2.34.1

#6 lore raw

Re: [PATCH v2] eventdev/crypto: fix missing crypto vec limits

Quoted 2 lines · Abhinandan S

Updated the git commit as follows and applied to
dpdk-next-net-eventdev/for-main. Thanks

eventdev/crypto: fix missing symbol in map file

Quoted 63 lines
Quoted 62 lines

-----Original Message-----
From: Volodymyr Fialko <[email protected]>
Sent: Wednesday, January 18, 2023 11:22 AM
To: [email protected]; Gujjar, Abhinandan S <[email protected]>; Jerin Jacob <[email protected]>; Akhil Goyal <[email protected]>; Volodymyr Fialko <[email protected]>
Cc: [email protected]
Subject: [PATCH v2] eventdev/crypto: fix missing crypto vec limits

Add missing function rte_event_crypto_adapter_vector_limits_get to version.map.

Fixes c1749bc5ee10 ("eventdev: introduce event cryptodev vector type")

---
v2:
- mark function as experimental

 lib/eventdev/rte_event_crypto_adapter.h | 4 ++++
 lib/eventdev/version.map                | 1 +
 2 files changed, 5 insertions(+)
lib/eventdev/rte_event_crypto_adapter.h +3 -0
index 83d154a6ce..2a69290097 100644
@@ -595,6 +595,9 @@ int
 rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t
 *event_port_id);
 
 /**
+ * @warning
+ * @b EXPERIMENTAL: this API may change without prior notice
+ *
  * Retrieve vector limits for a given event dev and crypto dev pair.
  * @see rte_event_crypto_adapter_vector_limits

*

lib/eventdev/rte_event_crypto_adapter.h +1 -0
@@ -610,6 +613,7 @@ rte_event_crypto_adapter_event_port_get(uint8_t id,
 uint8_t *event_port_id);
  *  - 0: Success.
  *  - <0: Error code on failure.
  */
+__rte_experimental
 int rte_event_crypto_adapter_vector_limits_get(
      uint8_t dev_id, uint16_t cdev_id,
      struct rte_event_crypto_adapter_vector_limits *limits); diff --git

a/lib/eventdev/version.map b/lib/eventdev/version.map index dd63ec6f68..c155af6d50 100644

lib/eventdev/version.map +1 -1
@@ -110,6 +110,7 @@ EXPERIMENTAL {
      rte_event_eth_rx_adapter_event_port_get;
 
      # added in 22.07
+     rte_event_crypto_adapter_vector_limits_get;
      rte_event_port_quiesce;
      rte_event_queue_attr_set;
 
--

2.34.1