Skip to contentSkip to conversation

doc: announce library refactor for ABI improvement

PATCH In review Ferruh Yigit 6 participants 6 messages Aug 26, 2021 – Aug 31, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: announce library refactor for ABI improvement

Target is to reduce the public interface surface to improve the ABI stability and this is preparation for the longer term stable ABI support.

Mainly device abstraction layer libraries are impacted because they have two interfaces, one is public interface to the applications and other is internal interface to the drivers. Some driver/internal interface structures/symbols are in the public interface by mistake, this work is to clean them.
Also some libraries has 'static inline' functions for performance reasons (like ones in the ethdev), this work plans to split the structures and hide the part that is not used by inline functions.

The need of the work for the stable ABI already discussed and planned by the DPDK technical board:
https://mails.dpdk.org/archives/dev/2021-July/214662.html

---
Cc: Konstantin Ananyev <[email protected]>
Cc: Jerin Jacob Kollanukkaran <[email protected]>
Cc: Akhil Goyal <[email protected]>
CC: Ray Kinsella <[email protected]>

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index 76a4abfd6b0b..1f02d9e14501 100644
@@ -63,6 +63,11 @@ Deprecation Notices
   us extending existing enum/define.
   One solution can be using a fixed size array instead of ``.*MAX.*`` value.
 
+* lib: Will hide internal data structures and symbols from the public interfaces
+  as much as possible in v21.11.
+  This ABI break is done to improve the ABI stability in the long term and will
+  be done mainly, but not limited to, in device abstraction layer libraries.
+
 * ethdev: Will add ``RTE_ETH_`` prefix to all ethdev macros/enums in v21.11.
   Macros will be added for backward compatibility.
   Backward compatibility macros will be removed on v22.11.
Signature · 1 line
2.31.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines

Target is to reduce the public interface surface to improve the ABI stability and this is preparation for the longer term stable ABI support.

Mainly device abstraction layer libraries are impacted because they have two interfaces, one is public interface to the applications and other is internal interface to the drivers. Some driver/internal interface structures/symbols are in the public interface by mistake, this work is to clean them.
Also some libraries has 'static inline' functions for performance reasons (like ones in the ethdev), this work plans to split the structures and hide the part that is not used by inline functions.

Quoted 6 lines

The need of the work for the stable ABI already discussed and planned by the DPDK technical board:
https://mails.dpdk.org/archives/dev/2021-July/214662.html

---

Acked-by
#2 lore raw
Quoted 14 lines · Akhil Goyal
Quoted 14 lines

Target is to reduce the public interface surface to improve the ABI stability and this is preparation for the longer term stable ABI support.

Mainly device abstraction layer libraries are impacted because they have two interfaces, one is public interface to the applications and other is internal interface to the drivers. Some driver/internal interface structures/symbols are in the public interface by mistake, this work is to clean them.
Also some libraries has 'static inline' functions for performance reasons (like ones in the ethdev), this work plans to split the structures and hide the part that is not used by inline functions.

Quoted 7 lines
Quoted 6 lines

The need of the work for the stable ABI already discussed and planned by the DPDK technical board:
https://mails.dpdk.org/archives/dev/2021-July/214662.html

---

#3 lore raw
In reply to Akhil Goyal
Quoted 13 lines · Akhil Goyal
Quoted 13 lines

Target is to reduce the public interface surface to improve the ABI stability and this is preparation for the longer term stable ABI support.

Mainly device abstraction layer libraries are impacted because they have two interfaces, one is public interface to the applications and other is internal interface to the drivers. Some driver/internal interface structures/symbols are in the public interface by mistake, this work is to clean them.
Also some libraries has 'static inline' functions for performance reasons (like ones in the ethdev), this work plans to split the structures and hide the part that is not used by inline functions.

Quoted 7 lines
Quoted 6 lines

The need of the work for the stable ABI already discussed and planned by the DPDK technical board:
https://mails.dpdk.org/archives/dev/2021-July/214662.html

---

#4 lore raw
Quoted 18 lines · Bruce Richardson
Quoted 17 lines · Akhil Goyal
Quoted 17 lines

Target is to reduce the public interface surface to improve the ABI stability and this is preparation for the longer term stable ABI support.

Mainly device abstraction layer libraries are impacted because they have two interfaces, one is public interface to the applications and other is internal interface to the drivers. Some driver/internal interface structures/symbols are in the public interface by mistake, this work is to clean them.
Also some libraries has 'static inline' functions for performance reasons (like ones in the ethdev), this work plans to split the structures and hide the part that is not used by inline functions.

The need of the work for the stable ABI already discussed and planned by the DPDK technical board:
https://mails.dpdk.org/archives/dev/2021-July/214662.html

Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

---

Acked-by
#5 lore raw
Quoted 19 lines · Andrew Rybchenko
Quoted 18 lines · Bruce Richardson
Quoted 17 lines · Akhil Goyal
Quoted 17 lines

Target is to reduce the public interface surface to improve the ABI stability and this is preparation for the longer term stable ABI support.

Mainly device abstraction layer libraries are impacted because they have two interfaces, one is public interface to the applications and other is internal interface to the drivers. Some driver/internal interface structures/symbols are in the public interface by mistake, this work is to clean them.
Also some libraries has 'static inline' functions for performance reasons (like ones in the ethdev), this work plans to split the structures and hide the part that is not used by inline functions.

The need of the work for the stable ABI already discussed and planned by the DPDK technical board:
https://mails.dpdk.org/archives/dev/2021-July/214662.html

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

---