From: Kevin Traynor <ktraynor@redhat.com>
To: Qi Zhang <qi.z.zhang@intel.com>,
thomas@monjalon.net, declan.doherty@intel.com,
ferruh.yigit@intel.com
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] doc: update API deprecation for device reset
Date: Mon, 10 Sep 2018 16:24:22 +0100 [thread overview]
Message-ID: <28d2e815-a5aa-377f-11bd-9c80b195c368@redhat.com> (raw)
In-Reply-To: <20180910140437.6741-1-qi.z.zhang@intel.com>
On 09/10/2018 03:04 PM, Qi Zhang wrote:
> 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.
>
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?
> RFC patch:
> http://patchwork.dpdk.org/patch/44513/
>
> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
> ---
> doc/guides/rel_notes/deprecation.rst | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index bade1e4c4..3490aac87 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -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.
>
prev parent reply other threads:[~2018-09-10 15:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 14:04 Qi Zhang
2018-09-10 15:24 ` Kevin Traynor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28d2e815-a5aa-377f-11bd-9c80b195c368@redhat.com \
--to=ktraynor@redhat.com \
--cc=declan.doherty@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).