DPDK patches and discussions
 help / color / mirror / Atom feed
From: Arnon Warshavsky <arnon@qwilt.com>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: "Burakov, Anatoly" <anatoly.burakov@intel.com>,
	wenzhuo.lu@intel.com,  declan.doherty@intel.com,
	jerin.jacob@caviumnetworks.com,
	 Bruce Richardson <bruce.richardson@intel.com>,
	ferruh.yigit@intel.com, dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] eal: replace rte_panic instances to return an error value
Date: Wed, 21 Mar 2018 00:42:16 +0200	[thread overview]
Message-ID: <CAKy9EB2OUyg-kG9bzDB_84okJ4Tn2cpGocU6dmP0njEJ8bWiWA@mail.gmail.com> (raw)
In-Reply-To: <6503395.k68LoKUDuZ@xps>

> Thanks for working on this important topic.
> With pleasure :)
>
 ...

> My feeling is that we could replace most of them by a log + return.
> I did not think you would add a new macro. Why you chose this way?
> This was meant to keep the code shorter, and imply to the reader that this
> return is actually meant to be fatal
>
...
> >   I would like to define a device health state that can be monitored from
> >   the side,and this will be an independant patch.
>
> You mean when a device become unusable?
>
Yes. Obviously not a simple issue, but essential for refraining from panic
in the interrupt/data-path context,
while allowing to detect and execute on the slow/management path.

>
> ..
> > - Some previously panicing void functions where changed to return a
> value,
> >   with callers modified accordingly.
>
> If the function is exposed to the application, I think it is an ABI change
> and should follow the deprecation process.
>
In this case I thought there would be no actual change for the user as the
transition is from returning void to int,
and existing calls should continue to behave as before (except for not
crashing)
Following references to these functions, they all seem to comply to this
rule, but I guess that's what reviews are for :)


>
>
> /Arnon

  reply	other threads:[~2018-03-20 22:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20 21:28 Arnon Warshavsky
2018-03-20 22:04 ` Thomas Monjalon
2018-03-20 22:42   ` Arnon Warshavsky [this message]
2018-03-20 22:49     ` Thomas Monjalon
2018-03-20 23:04       ` Arnon Warshavsky
2018-03-21  8:21         ` Thomas Monjalon
2018-03-21  8:47           ` Arnon Warshavsky

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=CAKy9EB2OUyg-kG9bzDB_84okJ4Tn2cpGocU6dmP0njEJ8bWiWA@mail.gmail.com \
    --to=arnon@qwilt.com \
    --cc=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=declan.doherty@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=jerin.jacob@caviumnetworks.com \
    --cc=thomas@monjalon.net \
    --cc=wenzhuo.lu@intel.com \
    /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).