doc: announce marking device and driver objects as internal
PATCH 1/1 doc: announce marking device and driver objects as internal
rte_driver and rte_device are unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.
Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
--- doc/guides/rel_notes/deprecation.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
doc/guides/rel_notes/deprecation.rst +7 -5
@@ -38,6 +38,13 @@ Deprecation Notices external users may still register their bus using a new driver header (see ``enable_driver_sdk`` meson option). +* drivers: As a followup on the work on the ``rte_bus`` object, the + ``rte_driver`` and ``rte_device`` objects (and as a domino effect, their + bus-specific counterparts) will be made opaque in DPDK 22.11. + Registering a driver on a bus will be marked as an internal API: + external users may still register their drivers using the bus specific + driver header (see ``enable_driver_sdk`` meson option). + * mempool: Helper macro ``MEMPOOL_HEADER_SIZE()`` is deprecated and will be removed in DPDK 22.11. The replacement macro ``RTE_MEMPOOL_HEADER_SIZE()`` is internal only.
@@ -49,11 +56,6 @@ Deprecation Notices * mempool: The mempool API macros ``MEMPOOL_PG_*`` are deprecated and will be removed in DPDK 22.11. -* pci: To reduce unnecessary ABIs exposed by DPDK bus driver, "rte_bus_pci.h" - will be made internal in 21.11 and macros/data structures/functions defined - in the header will not be considered as ABI anymore. This change is inspired - by the RFC https://patchwork.dpdk.org/project/dpdk/list/?series=17176. - * lib: will fix extending some enum/define breaking the ABI. There are multiple samples in DPDK that enum/define terminated with a ``.*MAX.*`` value which is used by iterators, and arrays holding these values are sized with this
Signature · 1 line
2.36.1
Quoted 10 lines · David Marchand
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Signed-off-by David Marchand <[email protected]>
Hi David,
Quoted 35 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Sunday, July 10, 2022 2:18 PM
To: [email protected]; [email protected]
Cc: Ray Kinsella <[email protected]>
Subject: [PATCH] doc: announce marking device and driver objects as internal
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Signed-off-by David Marchand <[email protected]>--- doc/guides/rel_notes/deprecation.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -38,6 +38,13 @@ Deprecation Notices external users may still register their bus using a new driver header(see
``enable_driver_sdk`` meson option).doc/guides/rel_notes/deprecation.rst +2
-0+* drivers: As a followup on the work on the ``rte_bus`` object, the + ``rte_driver`` and ``rte_device`` objects (and as a domino effect,their
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 47
Quoted 5 lines
doc/guides/rel_notes/deprecation.rst +5
-0+ bus-specific counterparts) will be made opaque in DPDK 22.11. + Registering a driver on a bus will be marked as an internal API: + external users may still register their drivers using the bus specific + driver header (see ``enable_driver_sdk`` meson option). +
Cc SPDK folks
Thanks for your work! My only concern is using enable_driver_sdk may not be a good way for SPDK based on the discussion.
http://patchwork.dpdk.org/project/dpdk/cover/[email protected]/
But overall this idea makes sense, so:
Quoted 22 lines
* mempool: Helper macro ``MEMPOOL_HEADER_SIZE()`` is deprecated and will be removed in DPDK 22.11. The replacement macro ``RTE_MEMPOOL_HEADER_SIZE()`` is internal only.
doc/guides/rel_notes/deprecation.rst +0
-1@@ -49,11 +56,6 @@ Deprecation Notices * mempool: The mempool API macros ``MEMPOOL_PG_*`` are deprecated and will be removed in DPDK 22.11. -* pci: To reduce unnecessary ABIs exposed by DPDK bus driver,"
rte_bus_pci.h"
- will be made internal in 21.11 and macros/data structures/functions defined
- in the header will not be considered as ABI anymore. This change is inspireddoc/guides/rel_notes/deprecation.rst +0
-2- by the RFC https://patchwork.dpdk.org/project/dpdk/list/?series=17176. - * lib: will fix extending some enum/define breaking the ABI. There aremultiple
samples in DPDK that enum/define terminated with a ``.*MAX.*`` value
which is
used by iterators, and arrays holding these values are sized with this
--
2.36.1
Thomas Monjalon
Acked-by11/07/2022 04:16, Xia, Chenbo:
Quoted 9 lines
From: David Marchand <[email protected]>
Quoted 8 lines
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
[...]
Quoted 13 lines
doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 47
Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +2
-0+* drivers: As a followup on the work on the ``rte_bus`` object, the + ``rte_driver`` and ``rte_device`` objects (and as a domino effect,their
doc/guides/rel_notes/deprecation.rst +5
-0+ bus-specific counterparts) will be made opaque in DPDK 22.11. + Registering a driver on a bus will be marked as an internal API: + external users may still register their drivers using the bus specific + driver header (see ``enable_driver_sdk`` meson option). +Cc SPDK folks
Quoted 3 lines
Thanks for your work! My only concern is using
enable_driver_sdkmay not be a good way for SPDK based on the discussion.
http://patchwork.dpdk.org/project/dpdk/cover/[email protected]/
Quick summary:
- Symbols exported by DPDK by default are supposed to be for applications.
- Option enable_driver_sdk allow installing headers to build drivers.
- Driver interface is not part of the stable ABI, i.e. no compat guarantee.
- SPDK is building drivers on top of DPDK bus drivers (PCI for now).
- SPDK was asked to check whether anything else is required.
There is no decision about ABI guarantee because we lack feedbacks. After this cleanup, the option enable_driver_sdk would be required when working with buses, like SPDK.
Is there a real need to build against distro-provided package? Is there a way to provide bus drivers SDK without messing with app SDK?
Quoted 3 lines
But overall this idea makes sense, so:
Acked-by Chenbo Xia <[email protected]>
I like the cleanup as well. It will allow more enhancements in future. I hope and believe we can accomodate SDK needs when it will be clear.
Quoted 11 lines · David Marchand
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Signed-off-by David Marchand <[email protected]>
Quoted 37 lines
--- doc/guides/rel_notes/deprecation.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)doc/guides/rel_notes/deprecation.rst +7
-6@@ -38,6 +38,13 @@ Deprecation Notices external users may still register their bus using a new driver header (see ``enable_driver_sdk`` meson option). +* drivers: As a followup on the work on the ``rte_bus`` object, the + ``rte_driver`` and ``rte_device`` objects (and as a domino effect, their + bus-specific counterparts) will be made opaque in DPDK 22.11. + Registering a driver on a bus will be marked as an internal API: + external users may still register their drivers using the bus specific + driver header (see ``enable_driver_sdk`` meson option). + * mempool: Helper macro ``MEMPOOL_HEADER_SIZE()`` is deprecated and will be removed in DPDK 22.11. The replacement macro ``RTE_MEMPOOL_HEADER_SIZE()`` is internal only.@@ -49,11 +56,6 @@ Deprecation Notices * mempool: The mempool API macros ``MEMPOOL_PG_*`` are deprecated and will be removed in DPDK 22.11. -* pci: To reduce unnecessary ABIs exposed by DPDK bus driver, "rte_bus_pci.h" - will be made internal in 21.11 and macros/data structures/functions defined - in the header will not be considered as ABI anymore. This change is inspired - by the RFC https://patchwork.dpdk.org/project/dpdk/list/?series=17176. - * lib: will fix extending some enum/define breaking the ABI. There are multiple samples in DPDK that enum/define terminated with a ``.*MAX.*`` value which is used by iterators, and arrays holding these values are sized with this --2.36.1
Quoted 10 lines · David Marchand
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Signed-off-by David Marchand <[email protected]>
Quoted 6 lines · David Marchand
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.
Quoted 8 lines
Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Signed-off-by David Marchand <[email protected]>--- doc/guides/rel_notes/deprecation.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
Thanks for working on this cleanup, David!
Andrew Rybchenko
Acked-byQuoted 10 lines · Kevin Laatz
Quoted 9 lines · David Marchand
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Quoted 9 lines
Quoted 5 lines
Signed-off-by David Marchand <[email protected]>---
doc/guides/rel_notes/deprecation.rst| 12 +++++++-----1 file changed, 7 insertions(+), 5 deletions(-)Thanks for working on this cleanup, David!
Acked-by Kevin Laatz <[email protected]>
Thomas Monjalon
Acked-by Andrew Rybchenko Acked-by Chenbo Xia Acked-by Acked-by Jerin Jacob Acked-by Hemant Agrawal Acked-by Kevin Laatz Acked-by Andrew Rybchenko on v1 1/1 Applied10/07/2022 08:17, David Marchand:
Quoted 10 lines
rte_driverandrte_deviceare unnecessarily exposed in the public API/ABI. Announce that they will be made opaque in the public API and mark associated API as internal.
This impacts all bus, as their driver registration mechanism will be made internal.Note: the PCI bus had a similar deprecation notice that we can remove as the new one is more generic.
Signed-off-by David Marchand <[email protected]>
Applied, thanks.