]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: support direct region read requests
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 5 Dec 2022 22:59:31 +0000 (14:59 -0800)
committerDavid Ahern <dsahern@kernel.org>
Thu, 8 Dec 2022 16:21:10 +0000 (09:21 -0700)
commita74e7181c60b8ffc75503ff7eea7d4a719d636fd
tree2e2a3f7beee06a42edb31dff18626c84135ed389
parentfa94a9792155f6692df50f13c3cfea5d21885f1f
devlink: support direct region read requests

The kernel has gained support for reading from regions without needing to
create a snapshot. To use this support, the DEVLINK_ATTR_REGION_DIRECT
attribute must be added to the command.

For the "read" command, if the user did not specify a snapshot, add the new
attribute to request a direct read. The "dump" command will still require a
snapshot. While technically a dump could be performed without a snapshot it
is not guaranteed to be atomic unless the region size is no larger than
256 bytes.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c