History

netdevsim: add support for flash_update overwrite mask

The devlink interface recently gained support for a new "overwrite mask" parameter that allows specifying how various sub-sections of a flash component are modified when updating. Add support for this to netdevsim, to enable easily testing the interface. Make the allowed overwrite mask values controllable via a debugfs parameter. This enables testing a flow where the driver rejects an unsupportable overwrite mask.

Jacob Keller committed 6 years ago

Commit cbb58361 parent 5d5b4123 files · +28 −1Browse files

Showing the changes to drivers/net/netdevsim/netdevsim.h (1 of 3 files). Show all

Unified · Split

drivers/net/netdevsim/netdevsim.h+1−0
@@ -196,6 +196,7 @@ struct nsim_dev { · 195 unmodified lines
196 struct list_head port_list;196 struct list_head port_list;
197 struct mutex port_list_lock; /* protects port list */197 struct mutex port_list_lock; /* protects port list */
198 bool fw_update_status;198 bool fw_update_status;
199 u32 fw_update_overwrite_mask;
199 u32 max_macs;200 u32 max_macs;
200 bool test1;201 bool test1;
201 bool dont_allow_reload;202 bool dont_allow_reload;