[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190524170852.4fea5e77@cakuba.netronome.com>
Date: Fri, 24 May 2019 17:08:52 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Jiri Pirko <jiri@...nulli.us>, David Ahern <dsahern@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, mlxsw@...lanox.com,
sthemmin@...rosoft.com, saeedm@...lanox.com, leon@...nel.org
Subject: Re: [patch net-next 3/7] mlxfw: Propagate error messages through
extack
On Sat, 25 May 2019 00:26:35 +0200, Jiri Pirko wrote:
> Fri, May 24, 2019 at 05:54:46PM CEST, jakub.kicinski@...ronome.com wrote:
> >On Fri, 24 May 2019 10:11:10 +0200, Jiri Pirko wrote:
> >> Thu, May 23, 2019 at 05:19:46PM CEST, dsahern@...il.com wrote:
> >> >On 5/23/19 3:45 AM, Jiri Pirko wrote:
> >> >> @@ -57,11 +58,13 @@ static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
> >> >> if (fsm_state_err != MLXFW_FSM_STATE_ERR_OK) {
> >> >> pr_err("Firmware flash failed: %s\n",
> >> >> mlxfw_fsm_state_err_str[fsm_state_err]);
> >> >> + NL_SET_ERR_MSG_MOD(extack, "Firmware flash failed");
> >> >> return -EINVAL;
> >> >> }
> >> >> if (curr_fsm_state != fsm_state) {
> >> >> if (--times == 0) {
> >> >> pr_err("Timeout reached on FSM state change");
> >> >> + NL_SET_ERR_MSG_MOD(extack, "Timeout reached on FSM state change");
> >> >
> >> >FSM? Is the meaning obvious to users?
> >>
> >> It is specific to mlx drivers.
> >
> >What does it stand for? Isn't it just Finite State Machine?
>
> I believe so.
In which case it doesn't really add much, no? I second David's request
to make the messages as easy to understand as possible.
PSID for better or worse I have previously capitulated on, so I guess
the ship has indeed sailed there :)
$ grep -A4 psid -- Documentation/networking/devlink-info-versions.rst
fw.psid
=======
Unique identifier of the firmware parameter set.
Powered by blists - more mailing lists