[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YO9ITZknrXte6jpB@lunn.ch>
Date: Wed, 14 Jul 2021 22:25:49 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jacob Keller <jacob.e.keller@...el.com>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kubakici@...pl>,
Jiri Pirko <jiri@...nulli.us>
Subject: Re: [PATCH net-next RFC] devlink: add commands to query flash and
reload support
> I'm not sure if this is the best direction to go for implementing this.
Hi Jacob
Maybe add a --dry-run option? That would allow the driver to also read
the firmware file, make sure it can parse it, it fits the actual
hardware, and the CRC is O.K, etc.
We just need to make sure that if it fails with -EOPNOTSUPP, is it
clear if --dry-run itself is not supported, or the operation is not
supported. extack should help with that.
Andrew
Powered by blists - more mailing lists