diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2020-09-25 23:46:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-26 03:20:57 +0300 |
commit | cbb58368fbccc823a85df73bd6bf7db6dfda86aa (patch) | |
tree | 758ec9ffe2d0186061f89ff084403815fa68b11c /drivers/net/netdevsim/netdevsim.h | |
parent | 5d5b4128c4caae34ddcd9b2dc30ac4d6155617a3 (diff) | |
download | linux-cbb58368fbccc823a85df73bd6bf7db6dfda86aa.tar.xz |
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.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index 0c86561e6d8d..0a1b28aea894 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -196,6 +196,7 @@ struct nsim_dev { struct list_head port_list; struct mutex port_list_lock; /* protects port list */ bool fw_update_status; + u32 fw_update_overwrite_mask; u32 max_macs; bool test1; bool dont_allow_reload; |