DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andrew Rybchenko <arybchenko@solarflare.com>
To: Thomas Monjalon <thomas@monjalon.net>,
	Ferruh Yigit <ferruh.yigit@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] rte_eth_dev_stop and rte_eth_dev_close are still void
Date: Tue, 19 Nov 2019 16:44:44 +0300	[thread overview]
Message-ID: <058ea300-b8cb-9225-d46d-eb3843a94933@solarflare.com> (raw)

Thomas, Ferruh,

the following deprecation notice is still in place:

* ethdev: Update API functions returning ``void`` to return ``int`` with
  negative errno values to indicate various error conditions (e.g.
  invalid port ID, unsupported operation, failed operation):

  - ``rte_eth_dev_stop``
  - ``rte_eth_dev_close``


I think the pair is the most complex from return value point of view.
Typically stop and close simply move on even if there are errors
on the way except trivial cases, when there is no way to do the job,
like invalid port ID or no dev_ops callback which should be mandatory.

The main question is what applications should do if either stop or
close return error. Panic? Just scream about it in logs?

I tend to say that functions still should be updated, but now we
should wait for 20.11 and make final decision at start of the
release cycle.

Should prototypes of callbacks be changed to allow drivers
provide operation status information (but still do as much as
it is possible)? I would say yes.

Thoughts?

Thanks,
Andrew.

                 reply	other threads:[~2019-11-19 13:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=058ea300-b8cb-9225-d46d-eb3843a94933@solarflare.com \
    --to=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@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).