[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200729082129.GA2204@nanopsycho>
Date: Wed, 29 Jul 2020 10:21:29 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, andrew@...n.ch,
jiri@...lanox.com, kernel-team@...com
Subject: Re: [PATCH net] devlink: ignore -EOPNOTSUPP errors on dumpit
Wed, Jul 29, 2020 at 01:15:07AM CEST, kuba@...nel.org wrote:
>Number of .dumpit functions try to ignore -EOPNOTSUPP errors.
>Recent change missed that, and started reporting all errors
>but -EMSGSIZE back from dumps. This leads to situation like
>this:
>
>$ devlink dev info
>devlink answers: Operation not supported
>
>Dump should not report an error just because the last device
>to be queried could not provide an answer.
>
>To fix this and avoid similar confusion make sure we clear
>err properly, and not leave it set to an error if we don't
>terminate the iteration.
>
>Fixes: c62c2cfb801b ("net: devlink: don't ignore errors during dumpit")
>Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Yeah, that makes perfect sense. Thanks for the fix Kuba!
Reviewed-by: Jiri Pirko <jiri@...lanox.com>
Powered by blists - more mailing lists