Skip to contentSkip to conversation

service: clean references to removed symbol

PATCH Applied David Marchand 3 participants 7 messages Apr 7, 2021 – Apr 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 service: clean references to removed symbol

rte_service_get_id() was removed in v17.11 but the API description still referenced it and a version node was still present in EAL map.

Fixes 8edc9aaaf217 ("service: use id in get by name function")
---
 lib/librte_eal/include/rte_service.h | 5 +----
 lib/librte_eal/version.map           | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)
lib/librte_eal/include/rte_service.h +1 -4
index ca9950d091..c7d037d862 100644
@@ -47,10 +47,7 @@ extern "C" {
 #define RTE_SERVICE_CAP_MT_SAFE (1 << 0)
 
 /**
- *  Return the number of services registered.
- *
- * The number of services registered can be passed to *rte_service_get_by_id*,
- * enabling the application to retrieve the specification of each service.
+ * Return the number of services registered.
  *
  * @return The number of services registered.
  */
lib/librte_eal/version.map +0 -1
index e23745ae6e..0f2a9228b3 100644
@@ -159,7 +159,6 @@ DPDK_21 {
 	rte_service_component_unregister;
 	rte_service_dump;
 	rte_service_finalize;
-	rte_service_get_by_id;
 	rte_service_get_by_name;
 	rte_service_get_count;
 	rte_service_get_name;
Signature · 1 line
2.23.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Wednesday, April 7, 2021 10:07 AM
To: [email protected]
Cc: [email protected]; Van Haaren, Harry <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Pavan Nikhilesh <[email protected]>
Subject: [PATCH] service: clean references to removed symbol

Quoted 7 lines

rte_service_get_id() was removed in v17.11 but the API description still referenced it and a version node was still present in EAL map.

Fixes 8edc9aaaf217 ("service: use id in get by name function")

For rte_service.h doc changes I'm all fine.

For ABI consistency, this removes a function from the DPDK_21 version map that didn't exist in the shared object itself. I'm not sure if that's an ABI break or not... I see ABI experts on CC, and will let them comment on that topic.

Quoted 36 lines
---
 lib/librte_eal/include/rte_service.h | 5 +----
 lib/librte_eal/version.map           | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)
lib/librte_eal/include/rte_service.h +1 -4
index ca9950d091..c7d037d862 100644
@@ -47,10 +47,7 @@ extern "C" {
 #define RTE_SERVICE_CAP_MT_SAFE (1 << 0)
 
 /**
- *  Return the number of services registered.
- *
- * The number of services registered can be passed to *rte_service_get_by_id*,
- * enabling the application to retrieve the specification of each service.
+ * Return the number of services registered.
  *
  * @return The number of services registered.
  */
lib/librte_eal/version.map +0 -2
index e23745ae6e..0f2a9228b3 100644
@@ -159,7 +159,6 @@ DPDK_21 {
 	rte_service_component_unregister;
 	rte_service_dump;
 	rte_service_finalize;
-	rte_service_get_by_id;
 	rte_service_get_by_name;
 	rte_service_get_count;
 	rte_service_get_name;
--

2.23.0

#2 lore raw
Quoted 16 lines · Harry
Quoted 16 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Wednesday, April 7, 2021 10:07 AM
To: [email protected]
Cc: [email protected]; Van Haaren, Harry <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Pavan Nikhilesh <[email protected]>
Subject: [PATCH] service: clean references to removed symbol

rte_service_get_id() was removed in v17.11 but the API description still referenced it and a version node was still present in EAL map.

Fixes 8edc9aaaf217 ("service: use id in get by name function")
Quoted 7 lines
Quoted 1 line

For rte_service.h doc changes I'm all fine.

For ABI consistency, this removes a function from the DPDK_21 version map that didn't exist in the shared object itself. I'm not sure if that's an ABI break or not... I see ABI experts on CC, and will let them comment on that topic.

The symbol is not in the API anymore.
Applications can't have a reference to this symbol without a definition.

Signature · 1 line
David Marchand
#3 lore raw
Quoted 30 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Thursday, April 8, 2021 1:58 PM
To: Van Haaren, Harry <[email protected]>
Cc: [email protected]; [email protected]; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Pavan Nikhilesh <[email protected]>
Subject: Re: [PATCH] service: clean references to removed symbol

Quoted 20 lines · Harry
Quoted 10 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Wednesday, April 7, 2021 10:07 AM
To: [email protected]
Cc: [email protected]; Van Haaren, Harry <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Pavan Nikhilesh <[email protected]>
Subject: [PATCH] service: clean references to removed symbol

Quoted 7 lines

rte_service_get_id() was removed in v17.11 but the API description still referenced it and a version node was still present in EAL map.

Fixes 8edc9aaaf217 ("service: use id in get by name function")

For rte_service.h doc changes I'm all fine.

Quoted 8 lines
Quoted 1 line

For ABI consistency, this removes a function from the DPDK_21 version map that

didn't exist in

Quoted 1 line

the shared object itself. I'm not sure if that's an ABI break or not... I see ABI

experts on CC,

Quoted 1 line

and will let them comment on that topic.

The symbol is not in the API anymore.
Applications can't have a reference to this symbol without a definition.

Agreed, however I'm not familiar enough with linking/ABI stability to know if removing a symbol (even when not available in the API) could affect the resulting shared object's ABI.

If somebody says there's no risk in ABI break, go ahead and merge. -Harry

#4 lore raw
Quoted 6 lines · Harry
Quoted 6 lines
Quoted 3 lines

For rte_service.h doc changes I'm all fine.

For ABI consistency, this removes a function from the DPDK_21 version map that

didn't exist in

Quoted 1 line

the shared object itself. I'm not sure if that's an ABI break or not... I see ABI

experts on CC,

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

and will let them comment on that topic.

The symbol is not in the API anymore.
Applications can't have a reference to this symbol without a definition.

Agreed, however I'm not familiar enough with linking/ABI stability to know if removing a symbol (even when not available in the API) could affect the resulting shared object's ABI.

After a discussion with Dodji and looking at binutils, I understand that the versioning is applied for each symbol found in an elf object. So at least with binutils, non-existent nodes in a version script are harmless and have no impact on the generated elf.

Signature · 1 line
David Marchand
#5 lore raw

08/04/2021 16:04, David Marchand:

Quoted 13 lines
Quoted 11 lines · Harry
Quoted 10 lines
Quoted 3 lines

For rte_service.h doc changes I'm all fine.

For ABI consistency, this removes a function from the DPDK_21 version map that

didn't exist in

Quoted 1 line

the shared object itself. I'm not sure if that's an ABI break or not... I see ABI

experts on CC,

Quoted 1 line

and will let them comment on that topic.

The symbol is not in the API anymore.
Applications can't have a reference to this symbol without a definition.

Quoted 8 lines
Quoted 3 lines

Agreed, however I'm not familiar enough with linking/ABI stability to know if removing a symbol (even when not available in the API) could affect the resulting shared object's ABI.

After a discussion with Dodji and looking at binutils, I understand that the versioning is applied for each symbol found in an elf object. So at least with binutils, non-existent nodes in a version script are harmless and have no impact on the generated elf.

Yes I don't see how it could break ABI.

author Reviewed-by Harry van Haaren Acked-by Thomas Monjalon on v1 1/1 Applied
#6 lore raw
In reply to David Marchand
Quoted 8 lines · David Marchand

rte_service_get_id() was removed in v17.11 but the API description still referenced it and a version node was still present in EAL map.

Fixes 8edc9aaaf217 ("service: use id in get by name function")

Applied, thanks.

Signature · 1 line
David Marchand