All of lore.kernel.org
 help / color / mirror / Atom feed
* [iproute2-next 0/2] devlink: add flash update overwrite mask
@ 2020-09-29 23:42 Jacob Keller
  2020-09-29 23:42 ` [iproute2-next 1/2] Update kernel headers for devlink Jacob Keller
  2020-09-29 23:42 ` [iproute2-next 2/2] devlink: support setting the overwrite mask Jacob Keller
  0 siblings, 2 replies; 4+ messages in thread
From: Jacob Keller @ 2020-09-29 23:42 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, Jacob Keller

This series implements the iproute2 side of the new
DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK.

This attribute is used to allow userspace to indicate what a device should
do with various subsections of a flash component when updating. For example,
a flash component might contain vital data such as the PCIe serial number or
configuration fields such as settings that control device bootup.

The overwrite mask allows the user to specify what behavior they want when
performing an update. If nothing is specified, then the update should
preserve all vital fields and configuration.

By specifying "overwrite identifiers" the user requests that the flash
update should overwrite any identifiers in the updated flash component with
identifier values from the provided flash image.

  $devlink dev flash pci/0000:af:00.0 file flash_image.bin overwrite identifiers

By specifying "overwrite settings" the user requests that the flash update
should overwrite any settings in the updated flash component with setting
values from the provided flash image.

  $devlink dev flash pci/0000:af:00.0 file flash_image.bin overwrite settings

These options may be combined, in which case both subsections will be sent
in the overwrite mask, resulting in a request to overwrite all settings and
identifiers stored in the updated flash components.

  $devlink dev flash pci/0000:af:00.0 file flash_image.bin overwrite settings overwrite identifiers

Jacob Keller (2):
  Update kernel headers for devlink
  devlink: support setting the overwrite mask

 devlink/devlink.c            | 48 ++++++++++++++++++++++++++++++++++--
 include/uapi/linux/devlink.h |  2 ++
 2 files changed, 48 insertions(+), 2 deletions(-)


base-commit: d2be31d9b671ec0b3e32f56f9c913e249ed048bd
-- 
2.28.0.497.g54e85e7af1ac


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-30 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 23:42 [iproute2-next 0/2] devlink: add flash update overwrite mask Jacob Keller
2020-09-29 23:42 ` [iproute2-next 1/2] Update kernel headers for devlink Jacob Keller
2020-09-29 23:42 ` [iproute2-next 2/2] devlink: support setting the overwrite mask Jacob Keller
2020-09-30 15:53   ` David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.