# RE: \[PATCH net-next RFC\] devlink: add commands to query flash and reload support

- From: Keller, Jacob E \<jacob.e.keller@intel.com\>
- Date: 2021-07-14 20:54:59 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/07/11207350
- Thread: https://ratatoskr.run/netdev/2021/07/11207348/t.md

```text


> -----Original Message-----
> From: Andrew Lunn <andrew@lunn.ch>
> Sent: Wednesday, July 14, 2021 1:26 PM
> To: Keller, Jacob E <jacob.e.keller@intel.com>
> Cc: <redacted>; Jakub Kicinski <redacted>; Jiri Pirko
> [ref]
> 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

That approach could be useful. It doesn't give an easy way to dump all of the supported flags, but that's not super critical. I think a dry-run makes a lot of sense for flash update.

I can go that approach for these two and see how it turns out.

Thanks,
Jake
```
