doc: add deprecation notice on timer lib cleanup
PATCH 1/1 doc: add deprecation notice on timer lib cleanup
Due to an upcoming fix to allow the timer library to safely free its allocations during the finalize() call[1], an ABI change will be required. A new lock will be added to the rte_mem_config structure, which will be used by the timer library to synchronize init/finalize calls among multiple processes.
[1] http://patches.dpdk.org/patch/53334/
--- doc/guides/rel_notes/deprecation.rst | 4 ++++ 1 file changed, 4 insertions(+)
doc/guides/rel_notes/deprecation.rst +4 -0
@@ -31,6 +31,10 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will change to include a new lock that + will allow the timer subsystem to safely release its allocations at cleanup + time. This will result in an ABI break. + * 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.
Signature · 1 line
2.6.4
Quoted 18 lines · On Wed, 8 May 2019 17:48:06 -0500 Erik Gabriel Carrillo…
Due to an upcoming fix to allow the timer library to safely free its allocations during the
finalize()call[1], an ABI change will be required. A new lock will be added to therte_mem_configstructure, which will be used by the timer library to synchronize init/finalize calls among multiple processes.[1] http://patches.dpdk.org/patch/53334/
Signed-off-by Erik Gabriel Carrillo <[email protected]>--- doc/guides/rel_notes/deprecation.rst | 4 ++++ 1 file changed, 4 insertions(+)doc/guides/rel_notes/deprecation.rst +0
-0
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 40
Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +4
-0@@ -31,6 +31,10 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will change to include a new lock that + will allow the timer subsystem to safely release its allocations at cleanup + time. This will result in an ABI break. + * 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.
NAK
Please go to the effort of making rte_mem_config not part of the visible ABI. Then change it.
Quoted 33 lines · Stephen Hemminger
Quoted 6 lines · On Wed, 8 May 2019 17:48:06 -0500 Erik Gabriel Carrillo…
Due to an upcoming fix to allow the timer library to safely free its allocations during the
finalize()call[1], an ABI change will be required. A new lock will be added to therte_mem_configstructure, which will be used by the timer library to synchronize init/finalize calls among multiple processes.Review
Quoted 8 lines
[1] http://patches.dpdk.org/patch/53334/
Signed-off-by Erik Gabriel Carrillo <[email protected]>--- doc/guides/rel_notes/deprecation.rst | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/doc/guides/rel_notes/deprecation.rstdoc/guides/rel_notes/deprecation.rst Deprecation Notices · line 34
Quoted 8 lines
index b47c8c2..7551383 100644
doc/guides/rel_notes/deprecation.rst +1
-0@@ -31,6 +31,10 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will change to include a new lockthat
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 35
Quoted 1 line
doc/guides/rel_notes/deprecation.rst +1
-0+ will allow the timer subsystem to safely release its allocations atcleanup
doc/guides/rel_notes/deprecation.rst Deprecation Notices
Quoted 3 lines
doc/guides/rel_notes/deprecation.rst +2
-0+ time. This will result in an ABI break. + * vfio: removal of ``rte_vfio_dma_map`` and ``rte_vfio_dma_unmap`` APIswhich
Quoted 9 lines
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 40
Quoted 2 lines
doc/guides/rel_notes/deprecation.rst +0
-0have been replaced with ``rte_dev_dma_map`` and ``rte_dev_dma_unmap`` functions. The due date for the removal targets DPDK 20.02.NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.
+1.
Signature · 1 line
David Marchand
Quoted 41 lines · David Marchand
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.
Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Signature · 2 lines
Thanks, Anatoly
Quoted 59 lines · Anatoly
Quoted 42 lines · David Marchand
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
Quoted 3 lines
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Is there an ABI contract between primary and secondary. I always assumed that if using secondary processes the requirement (though undocumented) was that both had to be linked against the exact same versions of DPDK?
Quoted 60 lines · Bruce Richardson
Quoted 59 lines · Anatoly
Quoted 42 lines · David Marchand
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
Quoted 8 lines
Quoted 3 lines
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Is there an ABI contract between primary and secondary. I always assumed that if using secondary processes the requirement (though undocumented) was that both had to be linked against the exact same versions of DPDK?
The fact that it's undocumented means we can't assume everyone will do that :)
If the community agrees that primary/secondary processes should always use the same DPDK version (regardless of static/dynamic builds etc.), then this problem would probably be solved.
Signature · 2 lines
Thanks, Anatoly
09/05/2019 11:37, Burakov, Anatoly:
Quoted 70 lines · Bruce Richardson
Quoted 60 lines · Anatoly
Quoted 59 lines · David Marchand
Quoted 42 lines
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
Quoted 8 lines
Quoted 3 lines
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Is there an ABI contract between primary and secondary. I always assumed that if using secondary processes the requirement (though undocumented) was that both had to be linked against the exact same versions of DPDK?
Quoted 6 lines
The fact that it's undocumented means we can't assume everyone will do that :)
If the community agrees that primary/secondary processes should always use the same DPDK version (regardless of static/dynamic builds etc.), then this problem would probably be solved.
+1 to document that primary/secondary with different DPDK versions is not supported.
Quoted 74 lines · Thomas Monjalon
09/05/2019 11:37, Burakov, Anatoly:
Quoted 73 lines · Bruce Richardson
Quoted 60 lines · Anatoly
Quoted 59 lines · David Marchand
Quoted 42 lines
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
Quoted 8 lines
Quoted 3 lines
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Is there an ABI contract between primary and secondary. I always assumed that if using secondary processes the requirement (though undocumented) was that both had to be linked against the exact same versions of DPDK?
The fact that it's undocumented means we can't assume everyone will do that :)
Quoted 7 lines
Quoted 3 lines
If the community agrees that primary/secondary processes should always use the same DPDK version (regardless of static/dynamic builds etc.), then this problem would probably be solved.
+1 to document that primary/secondary with different DPDK versions is not supported.
+1,
but I think we need to go farther - we need a secondary process to check with the primary process.
We can't assume everyone will read the documentation.
Quoted 85 lines · Ray Kinsella
Quoted 74 lines · Thomas Monjalon
09/05/2019 11:37, Burakov, Anatoly:
Quoted 73 lines · Bruce Richardson
Quoted 60 lines · Anatoly
Quoted 59 lines · David Marchand
Quoted 42 lines
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
Quoted 8 lines
Quoted 3 lines
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Is there an ABI contract between primary and secondary. I always assumed that if using secondary processes the requirement (though undocumented) was that both had to be linked against the exact same versions of DPDK?
The fact that it's undocumented means we can't assume everyone will do that :)
Quoted 7 lines
Quoted 3 lines
If the community agrees that primary/secondary processes should always use the same DPDK version (regardless of static/dynamic builds etc.), then this problem would probably be solved.
+1 to document that primary/secondary with different DPDK versions is not supported.
Quoted 6 lines
+1,
but I think we need to go farther - we need a secondary process to check with the primary process.
We can't assume everyone will read the documentation.
That easily can be done, yes.
Signature · 2 lines
Thanks, Anatoly
Quoted 8 lines · Anatoly
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
If the community agrees that primary/secondary processes should always use the same DPDK version (regardless of static/dynamic builds etc.), then this problem would probably be solved.
+1 to document that primary/secondary with different DPDK versions is not supported.
Quoted 8 lines
Quoted 6 lines
+1,
but I think we need to go farther - we need a secondary process to check with the primary process.
We can't assume everyone will read the documentation.That easily can be done, yes.
Agree with the consensus that primary/secondary must be on the same version. Think even driver internal data structures have to be compatiable.
Quoted 86 lines · Anatoly
Quoted 85 lines · Ray Kinsella
Quoted 81 lines · Thomas Monjalon
09/05/2019 11:37, Burakov, Anatoly:
Quoted 70 lines · Bruce Richardson
Quoted 60 lines · Anatoly
Quoted 59 lines · David Marchand
Quoted 42 lines
On Thu, May 9, 2019 at 3:11 AM Stephen Hemminger <[email protected] <mailto:[email protected]>> wrote:
On Wed, 8 May 2019 17:48:06 -0500
Erik Gabriel Carrillo <[email protected] <mailto:[email protected]>> wrote:> Due to an upcoming fix to allow the timer library to safely free its > allocations during the
finalize()call[1], an ABI change will be > required. A new lock will be added to therte_mem_configstructure, > which will be used by the timer library to synchronize init/finalize > calls among multiple processes.
>
> [1] http://patches.dpdk.org/patch/53334/
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]
<mailto:[email protected]>>
> ---
>doc/guides/rel_notes/deprecation.rst| 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --gita/doc/guides/rel_notes/deprecation.rst
b/doc/guides/rel_notes/deprecation.rst
> index b47c8c2..7551383 100644
> ---a/doc/guides/rel_notes/deprecation.rst
> +++b/doc/guides/rel_notes/deprecation.rst
> @@ -31,6 +31,10 @@ Deprecation Notices
>
> + ``rte_eal_devargs_type_count``
>
> +* eal: the ``rte_mem_config`` struct will change to include a
new lock that
> + will allow the timer subsystem to safely release its
allocations at cleanup
> + time. This will result in an ABI break.
> +
> * 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.Quoted 8 lines
NAK
Please go to the effort of making
rte_mem_confignot part of the visible ABI.
Then change it.+1.
I agree on principle, however this won't solve the issue. It doesn't need to be externally visible, but that's not all of its problems - it's also shared between processes so there's an ABI contract between primary and secondary too. This means that, even if the structure itself is not public, any changes to it will still result in an ABI break. That's the nature of our shared memory.
Quoted 8 lines
Quoted 3 lines
In other words, if your goal is to avoid ABI breaks on changing this structure, making it internal won't help in the slightest.
Is there an ABI contract between primary and secondary. I always assumed that if using secondary processes the requirement (though undocumented) was that both had to be linked against the exact same versions of DPDK?
Quoted 6 lines
The fact that it's undocumented means we can't assume everyone will do that :)
If the community agrees that primary/secondary processes should always use the same DPDK version (regardless of static/dynamic builds etc.), then this problem would probably be solved.
+1 to document that primary/secondary with different DPDK versions is not supported.
Quoted 9 lines
Quoted 6 lines
+1,
but I think we need to go farther - we need a secondary process to check with the primary process.
We can't assume everyone will read the documentation.That easily can be done, yes.
FYI - I submitted patches to make lcore_config private.
These patches should handle mem_config.
And I started on making eal_config private (but mem_config got in the way).
Other candidates are the internals behind ethdev and devices.
Quoted 10 lines · Erik Gabriel Carrillo
Due to an upcoming fix to allow the timer library to safely free its allocations during the
finalize()call[1], an ABI change will be required. A new lock will be added to therte_mem_configstructure, which will be used by the timer library to synchronize init/finalize calls among multiple processes.[1] http://patches.dpdk.org/patch/53334/
Signed-off-by Erik Gabriel Carrillo <[email protected]>---
As per discussion, please change the deprecation notice to instead make rte_eal_memconfig private.
Signature · 2 lines
Thanks, Anatoly
PATCH v2 1/1 doc: add deprecation notice on EAL mem config
In reply to Erik Gabriel CarrilloIt is planned to make the rte_mem_config struct of the EAL private to remove it from the visible ABI. Add a notice to announce the intention.
---
changes in v2:
- Original deprecation notice announced a change to the rte_mem_config struct that would break ABI. Update the notice to instead announce the struct will be made private. (Stephen, Anatoly, David)
doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+)
doc/guides/rel_notes/deprecation.rst +3 -0
@@ -31,6 +31,9 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will be made private to remove it from the + externally visible ABI and allow it to be updated in the future. + * 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.
Signature · 1 line
2.6.4
Re: [dpdk-dev] [PATCH v2] doc: add deprecation notice on EAL mem config
Quoted 19 lines · Erik Gabriel Carrillo
It is planned to make the
rte_mem_configstruct of the EAL private to remove it from the visible ABI. Add a notice to announce the intention.Signed-off-by Erik Gabriel Carrillo <[email protected]>---
changes in v2:
- Original deprecation notice announced a change to therte_mem_configstruct that would break ABI. Update the notice to instead announce the struct will be made private. (Stephen, Anatoly, David)doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+)doc/guides/rel_notes/deprecation.rst +0
-0
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 39
Quoted 9 lines
doc/guides/rel_notes/deprecation.rst +3
-0@@ -31,6 +31,9 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will be made private to remove it from the + externally visible ABI and allow it to be updated in the future. + * 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.
Signature · 2 lines
Thanks, Anatoly
Bruce Richardson
Acked-byRe: [dpdk-dev] [PATCH v2] doc: add deprecation notice on EAL mem config
Quoted 14 lines · Anatoly
Quoted 13 lines · Erik Gabriel Carrillo
It is planned to make the
rte_mem_configstruct of the EAL private to remove it from the visible ABI. Add a notice to announce the intention.Signed-off-by Erik Gabriel Carrillo <[email protected]>---
changes in v2:
- Original deprecation notice announced a change to therte_mem_configstruct that would break ABI. Update the notice to instead announce the struct will be made private. (Stephen, Anatoly, David)doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+)
Quoted 16 lines
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 38
Quoted 13 lines
doc/guides/rel_notes/deprecation.rst +3
-0@@ -31,6 +31,9 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will be made private to remove it from the + externally visible ABI and allow it to be updated in the future. + * 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.Acked-by Anatoly Burakov <[email protected]>
Re: [dpdk-dev] [PATCH v2] doc: add deprecation notice on EAL mem config
10/05/2019 11:34, Bruce Richardson:
Quoted 12 lines · Anatoly
Quoted 11 lines · Erik Gabriel Carrillo
Quoted 10 lines
It is planned to make the
rte_mem_configstruct of the EAL private to remove it from the visible ABI. Add a notice to announce the intention.Signed-off-by Erik Gabriel Carrillo <[email protected]>---
changes in v2:
- Original deprecation notice announced a change to therte_mem_configstruct that would break ABI. Update the notice to instead announce the struct will be made private. (Stephen, Anatoly, David)
Quoted 7 lines
Quoted 6 lines
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 35
Quoted 4 lines
doc/guides/rel_notes/deprecation.rst +2
-0+* eal: the ``rte_mem_config`` struct will be made private to remove it from the + externally visible ABI and allow it to be updated in the future.Acked-by Anatoly Burakov <[email protected]>Acked-by Bruce Richardson <[email protected]>
Applied, thanks
Re: [dpdk-dev] [PATCH v2] doc: add deprecation notice on EAL mem config
In reply to Erik Gabriel CarrilloQuoted 27 lines · Erik Gabriel Carrillo
It is planned to make the
rte_mem_configstruct of the EAL private to remove it from the visible ABI. Add a notice to announce the intention.Signed-off-by Erik Gabriel Carrillo <[email protected]>---
changes in v2:
- Original deprecation notice announced a change to therte_mem_configstruct that would break ABI. Update the notice to instead announce the struct will be made private. (Stephen, Anatoly, David)doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+)doc/guides/rel_notes/deprecation.rst +1
-0@@ -31,6 +31,9 @@ Deprecation Notices + ``rte_eal_devargs_type_count`` +* eal: the ``rte_mem_config`` struct will be made private to remove itfrom the
doc/guides/rel_notes/deprecation.rst +2
-0+ externally visible ABI and allow it to be updated in the future. + * vfio: removal of ``rte_vfio_dma_map`` and ``rte_vfio_dma_unmap`` APIs
Quoted 7 lines
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.
--
2.6.4
I had a look at the current callers, trying to see what "hiding" means.
$ git grep -Elw '(rte_mem_config|mem_config)' origin/master -- origin/master:app/test/test_memzone.c origin/master:doc/guides/rel_notes/release_18_11.rst origin/master:drivers/bus/fslmc/fslmc_vfio.c origin/master:drivers/net/ena/ena_ethdev.c origin/master:drivers/net/mlx4/mlx4_mr.c origin/master:drivers/net/mlx5/mlx5_mr.c origin/master:drivers/net/virtio/virtio_user/virtio_user_dev.c origin/master:lib/librte_eal/common/eal_common_memory.c origin/master:lib/librte_eal/common/eal_common_memzone.c origin/master:lib/librte_eal/common/eal_common_tailqs.c origin/master:lib/librte_eal/common/include/rte_eal.h origin/master:lib/librte_eal/common/include/rte_eal_memconfig.h origin/master:lib/librte_eal/common/malloc_heap.c origin/master:lib/librte_eal/common/rte_malloc.c origin/master:lib/librte_eal/freebsd/eal/eal.c origin/master:lib/librte_eal/freebsd/eal/eal_memory.c origin/master:lib/librte_eal/linux/eal/eal.c origin/master:lib/librte_eal/linux/eal/eal_memalloc.c origin/master:lib/librte_eal/linux/eal/eal_memory.c origin/master:lib/librte_eal/linux/eal/eal_vfio.c
- I understand that the following drivers will need a new lock/unlock api to protect calls to the memory api. drivers/bus/fslmc/fslmc_vfio.cdrivers/net/mlx4/mlx4_mr.cdrivers/net/mlx5/mlx5_mr.c drivers/net/virtio/virtio_user/virtio_user_dev.c
- I have a little trouble with this one, so there might be a new api for this driver usecase.
A discussion will have to happen with its maintainers (added in CC:). drivers/net/ena/ena_ethdev.c
Apart from this, I am ok with the objective, which is to hide one more eal internal structure.
Signature · 1 line
David Marchand