Skip to contentSkip to conversation

doc: announce ABI change on eal and kni

PATCH In review Arnon Warshavsky 4 participants 9 messages Apr 28, 2019 – May 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: announce ABI change on eal and kni

For the purpose of removing instances of rte_panic from the init sequence, some void functions need to change to return an error code.The planned modifications of 19.08 require to change one eal function and one kni function.

---
 doc/guides/rel_notes/deprecation.rst | 12 ++++++++++++
 1 file changed, 12 insertions(+)
doc/guides/rel_notes/deprecation.rst +12 -0
index b47c8c2..c4ab9a2 100644
@@ -31,6 +31,12 @@ Deprecation Notices
 
     + ``rte_eal_devargs_type_count``
 
+* eal: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_eal/common/eal_thread.h`` replace
+    ``void eal_thread_init_master(unsigned lcore_id)``
+    to return ``int``
+
 * vfio: removal of ``rte_vfio_dma_map`` and ``rte_vfio_dma_unmap`` APIs which
   have been replaced with ``rte_dev_dma_map`` and ``rte_dev_dma_unmap``
   functions.  The due date for the removal targets DPDK 20.02.
@@ -65,6 +71,12 @@ Deprecation Notices
   kernel modules in DPDK. As a result users won't be able to use ``ethtool``
   via ``igb`` & ``ixgbe`` anymore.
 
+* kni: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_kni/rte_kni_fifo.h`` replace
+    ``static void kni_fifo_init(struct rte_kni_fifo *fifo, unsigned size)``
+    to return ``int``
+
 * cryptodev: New member in ``rte_cryptodev_config`` to allow applications to
   disable features supported by the crypto device. Only the following features
   would be allowed to be disabled this way,
Signature · 1 line
1.8.3.1
#1 lore raw

On Sun, 28 Apr 2019 17:58:48 +0300
Arnon Warshavsky <[email protected]> wrote:

These deprecation notices are unnecessary. These are not public API's.

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 38

Quoted 5 lines
doc/guides/rel_notes/deprecation.rst +5 -0
+* eal: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_eal/common/eal_thread.h`` replace
+    ``void eal_thread_init_master(unsigned lcore_id)``
+    to return ``int``

This function is never exported (see rte_eal_version.map) and therefore be marked private to the EAL, and not a public API.

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 78

Quoted 5 lines
doc/guides/rel_notes/deprecation.rst +5 -0
+* kni: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_kni/rte_kni_fifo.h`` replace
+    ``static void kni_fifo_init(struct rte_kni_fifo *fifo, unsigned size)``
+    to return ``int``

This is not a public API really so no deprecation needed. It is just an include file used internally by library and the driver.

#2 lore raw
Quoted 4 lines · Stephen Hemminger

On Sun, 28 Apr 2019 17:58:48 +0300
Arnon Warshavsky <[email protected]> wrote:

These deprecation notices are unnecessary. These are not public API's.

+1

Quoted 19 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 38

Quoted 6 lines
doc/guides/rel_notes/deprecation.rst +5 -0
+* eal: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_eal/common/eal_thread.h`` replace
+    ``void eal_thread_init_master(unsigned lcore_id)``
+    to return ``int``

This function is never exported (see rte_eal_version.map) and therefore be marked private to the EAL, and not a public API.

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 78

Quoted 5 lines
doc/guides/rel_notes/deprecation.rst +5 -0
+* kni: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_kni/rte_kni_fifo.h`` replace
+    ``static void kni_fifo_init(struct rte_kni_fifo *fifo, unsigned size)``
+    to return ``int``

This is not a public API really so no deprecation needed. It is just an include file used internally by library and the driver.

#3 lore raw
Quoted 11 lines · On Mon, 29 Apr 2019 10:28:36 +0100 Ferruh Yigit <[email protected]> wrote:
Quoted 11 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 78

Quoted 7 lines
doc/guides/rel_notes/deprecation.rst +5 -0
+* kni: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_kni/rte_kni_fifo.h`` replace
+    ``static void kni_fifo_init(struct rte_kni_fifo *fifo, unsigned size)``
+    to return ``int``  

This is not a public API really so no deprecation needed. It is just an include file used internally by library and the driver.

This does introduce the possibility of kernel/library version mismatch. You might want to add a magic number to shared data structure.

#4 lore raw
Quoted 11 lines · Stephen Hemminger
Quoted 8 lines · On Mon, 29 Apr 2019 10:28:36 +0100 Ferruh Yigit <[email protected]> wrote:
Quoted 8 lines
Quoted 7 lines
doc/guides/rel_notes/deprecation.rst +5 -0
+* kni: Modify function return value for the sake of removing rte_panic
+       from the init sequence in version 19.08.
+  - In ``lib/librte_kni/rte_kni_fifo.h`` replace
+    ``static void kni_fifo_init(struct rte_kni_fifo *fifo, unsigned size)``
+    to return ``int``  
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

This is not a public API really so no deprecation needed. It is just an include file used internally by library and the driver.

This does introduce the possibility of kernel/library version mismatch. You might want to add a magic number to shared data structure.

Changing 'kni_fifo_init()' return type shouldn't be a problem at all, perhaps it would be a problem if the content of the fifo changed but it is not the case.

#5 lore raw
Quoted 7 lines

Changing 'kni_fifo_init()' return type shouldn't be a problem at all, perhaps it would be a problem if the content of the fifo changed but it is not
the case.

Should I move this patch to deferred or reject?

#6 lore raw

07/05/2019 11:57, Arnon Warshavsky:

Quoted 9 lines
Quoted 7 lines

Changing 'kni_fifo_init()' return type shouldn't be a problem at all, perhaps it would be a problem if the content of the fifo changed but it is not
the case.

Should I move this patch to deferred or reject?

It can be set to "rejected".

I am preparing a deprecation notice for rte_eal_remote_launch and rte_metrics_init.

#7 lore raw
Quoted 8 lines

I am preparing a deprecation notice for rte_eal_remote_launch and rte_metrics_init.

hmm, I followed panic and not exit, so missed rte_metrics_init.

rte_eal_remote_launch currently returns int. what deprecation goes there?

#8 lore raw

08/05/2019 22:22, Arnon Warshavsky:

Quoted 5 lines
Quoted 3 lines

I am preparing a deprecation notice for rte_eal_remote_launch and rte_metrics_init.

hmm, I followed panic and not exit, so missed rte_metrics_init. rte_eal_remote_launch currently returns int. what deprecation goes there?

We probably need to add a new error code for rte_eal_remote_launch. It is just a doxygen change, but it is part of the API.