doc: alias to experimental tag for stable apis
PATCH 1/1 doc: alias to experimental tag for stable apis
When a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
doc/guides/contributing/abi_policy.rst +10 -0
@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations where an ``experimental`` API has been stable for some time. + When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. + #. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.
@@ -317,6 +322,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the API. This alias can then be dropped at the declaration of +next major ABI version. + Libraries ~~~~~~~~~
Signature · 1 line
2.7.4
PATCH v3 1/1 doc: alias to experimental tag for stable apis
When a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
doc/guides/contributing/abi_policy.rst +10 -0
@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations where an ``experimental`` API has been stable for some time. + When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. + #. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.
@@ -317,6 +322,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the API. This alias can then be dropped at the declaration of +next major ABI version. + Libraries ~~~~~~~~~
Signature · 1 line
2.7.4
PATCH v4 1/1 doc: alias to experimental tag for stable apis
In reply to Ray KinsellaWhen a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
doc/guides/contributing/abi_policy.rst +10 -0
@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations in which an ``experimental`` API has been stable for some + time. When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. + #. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.
@@ -317,6 +322,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the API. The alias is then dropped at the declaration of next +major ABI version. + Libraries ~~~~~~~~~
Signature · 1 line
2.7.4
Quoted 31 lines · Ray Kinsella
When a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
Signed-off-by Ray Kinsella <[email protected]>--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)doc/guides/contributing/abi_policy.rst +5
-0@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations in which an ``experimental`` API has been stable for some + time. When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. + #. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.@@ -317,6 +322,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to
doc/guides/contributing/abi_policy.rst not required. Though, an API should remain in experimental state for at least · line 332
Quoted 10 lines
doc/guides/contributing/abi_policy.rst +5
-0mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the API. The alias is then dropped at the declaration of next +major ABI version. + Libraries ~~~~~~~~~
This leaves the decision to author/maintainer, I am more for making this a requirement, but at least this enables it and better than nothing ;)
Quoted 31 lines · Ray Kinsella
When a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
Signed-off-by Ray Kinsella <[email protected]>--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)doc/guides/contributing/abi_policy.rst +5
-0@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations in which an ``experimental`` API has been stable for some + time. When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. + #. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.@@ -317,6 +322,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to
doc/guides/contributing/abi_policy.rst not required. Though, an API should remain in experimental state for at least · line 332
Quoted 10 lines
doc/guides/contributing/abi_policy.rst +5
-0mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the API. The alias is then dropped at the declaration of next +major ABI version. + Libraries ~~~~~~~~~
Sounds good. It doesn't change the minimum contract but gives some flexibility to deal with individual cases.
Quoted 17 lines · Ray Kinsella
When a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
Signed-off-by Ray Kinsella <[email protected]>--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)doc/guides/contributing/abi_policy.rst +0
-0
doc/guides/contributing/abi_policy.rst The requirements for changing the ABI are: · line 166
Quoted 8 lines
doc/guides/contributing/abi_policy.rst +5
-0@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations where an ``experimental`` API has been stable for some time. + When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. +
I don't have any issue with the approach, but just to ask the question, is it worth providing an example here, of how exactly to do this? The use of VERSION_SYMBOL isn't often used, and so may be non-obvious.
Actually, as I look at it, the VERSION_SYMBOL macro assume a DPDK_ prefix on the version string, which works for versioned symbols, but not for the EXPERIMENTAL symbol version (no DPDK_ prefix). We should probably create a variant of the VERSION_SYMBOL macro to allow aliasing to the EXPERIMENTAL version, something like ALIAS_TO_EXPERIMENTAL() or some such
Neil
Quoted 19 lines
doc/guides/contributing/abi_policy.rst +5
-0#. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.@@ -317,6 +322,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the API. This alias can then be dropped at the declaration of +next major ABI version. + Libraries ~~~~~~~~~Signature · 1 line
2.7.4
Quoted 31 lines · Neil Horman
Quoted 17 lines · Ray Kinsella
When a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
Signed-off-by Ray Kinsella <[email protected]>--- doc/guides/contributing/abi_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)doc/guides/contributing/abi_policy.rst +0
-0doc/guides/contributing/abi_policy.rst The requirements for changing the ABI are: · line 166
Quoted 8 lines
doc/guides/contributing/abi_policy.rst +5
-0@@ -159,6 +159,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations where an ``experimental`` API has been stable for some time. + When promoting the API to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. +I don't have any issue with the approach, but just to ask the question, is it worth providing an example here, of how exactly to do this? The use of
VERSION_SYMBOLisn't often used, and so may be non-obvious.
Quoted 5 lines
Actually, as I look at it, the
VERSION_SYMBOLmacro assume aDPDK_prefix on the version string, which works for versioned symbols, but not for the EXPERIMENTAL symbol version (noDPDK_prefix). We should probably create a variant of theVERSION_SYMBOLmacro to allow aliasing to the EXPERIMENTAL version, something likeALIAS_TO_EXPERIMENTAL()or some such
Let's clarify this part so this can be merged in early 20.05. Thanks.
Signature · 1 line
David Marchand
PATCH v5 1/1 doc: alias to experimental tag for stable apis
In reply to Ray KinsellaWhen a maintainer is promoting an API to become part of the next major ABI version by removing the experimental tag, possibly a few releases in advance of the declaration of the next ABI version. The maintainer may choose to offer an alias to the experimental tag, as removing the tag before the declaration of the next major ABI version, would cause an ABI breakage for applications using the API.
---
This patch depends on "doc: fix references to bind_default_symbol".
https://patches.dpdk.org/patch/69850/
v5:
* Added section on aliasing to experimental. requested by Neil Horman <[email protected]>
doc/guides/contributing/abi_policy.rst | 10 ++ doc/guides/contributing/abi_versioning.rst | 158 ++++++++++++++++++++++++++++- 2 files changed, 167 insertions(+), 1 deletion(-)
doc/guides/contributing/abi_policy.rst +10 -0
@@ -160,6 +160,11 @@ The requirements for changing the ABI are: ``experimental``, as described in the section on :ref:`Experimental APIs and Libraries <experimental_apis>`. + - In situations in which an ``experimental`` symbol has been stable for some + time. When promoting the symbol to become part of the next ABI version, the + maintainer may choose to provide an alias to the ``experimental`` tag, so + as not to break consuming applications. + #. If a newly proposed API functionally replaces an existing one, when the new API becomes non-experimental, then the old one is marked with ``__rte_deprecated``.
@@ -318,6 +323,11 @@ not required. Though, an API should remain in experimental state for at least one release. Thereafter, the normal process of posting patch for review to mailing list can be followed. +After the experimental tag has been formally removed, a tree/sub-tree maintainer +may choose to offer an alias to the experimental tag so as not to break +applications using the symbol. The alias is then dropped at the declaration of +next major ABI version. + Libraries ~~~~~~~~~
doc/guides/contributing/abi_versioning.rst +157 -1
176 lines not on this page · raw message
--
2.7.4
Quoted 6 lines · Ray Kinsella
doc/guides/contributing/abi_versioning.rst +6
-0+In the map file, experimental symbols are listed as part of the ``experimental`` +version node. + +.. code-block:: none + + DPDK_20 {
doc/guides/contributing/abi_versioning.rst at the start of the head of the file. This will indicate to the tool-chain to · line 467
Quoted 10 lines
doc/guides/contributing/abi_versioning.rst +10
-0+ global: + ... + + local: *; + }; + + EXPERIMENTAL { + global: + + rte_acl_create
Missing ; and idem for the rest of the patch.
Signature · 1 line
David Marchand