doc: update API deprecation for device reset
PATCH 1/1 doc: update API deprecation for device reset
Device reset may have the dependency, for example, a VF reset expects PF ready, or a NIC function as a part of a SOC need to wait for other parts of the system be ready, these are time-consuming tasks and will block current thread.
So we claimed rte_eth_dev_reset as an async API, that makes things easy for an application that what to reset the device from the interrupt thread since typically a RTE_ETH_EVENT_INTR_RESET handler is invoked in interrupt thread.
RFC patch:
http://patchwork.dpdk.org/patch/44513/
--- doc/guides/rel_notes/deprecation.rst | 5 +++++ 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
@@ -95,3 +95,8 @@ Deprecation Notices - ``rte_pdump_set_socket_dir`` will be removed; - The parameter, ``path``, of ``rte_pdump_init`` will be removed; - The enum ``rte_pdump_socktype`` will be removed. + +* ethdev: In v19.02 ``rte_eth_dev_reset`` is claimed as an async API. + Application should not assume device reset is finished after + ``rte_eth_dev_reset`` return, it should always wait for a + RTE_ETH_EVENT_RESET_COMPLETE event and check the reset result.
Signature · 1 line
2.13.6
Quoted 10 lines · Qi Zhang
Device reset may have the dependency, for example, a VF reset expects PF ready, or a NIC function as a part of a SOC need to wait for other parts of the system be ready, these are time-consuming tasks and will block current thread.
So we claimed
rte_eth_dev_resetas an async API, that makes things easy for an application that what to reset the device from the interrupt thread since typically aRTE_ETH_EVENT_INTR_RESEThandler is invoked in interrupt thread.
I think it may be better to give the function with new async behaviour a new name. Otherwise, it could be confusing for users who are currently taking some action based on the return value from the current blocking version of the function. What do you think?
Quoted 22 lines
RFC patch:
http://patchwork.dpdk.org/patch/44513/Signed-off-by Qi Zhang <[email protected]>--- doc/guides/rel_notes/deprecation.rst | 5 +++++ 1 file changed, 5 insertions(+)doc/guides/rel_notes/deprecation.rst +5
-0@@ -95,3 +95,8 @@ Deprecation Notices - ``rte_pdump_set_socket_dir`` will be removed; - The parameter, ``path``, of ``rte_pdump_init`` will be removed; - The enum ``rte_pdump_socktype`` will be removed. + +* ethdev: In v19.02 ``rte_eth_dev_reset`` is claimed as an async API. + Application should not assume device reset is finished after + ``rte_eth_dev_reset`` return, it should always wait for a + RTE_ETH_EVENT_RESET_COMPLETE event and check the reset result.