summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorAlex Vesker2018-07-12 14:13:12 +0200
committerDavid S. Miller2018-07-13 02:37:13 +0200
commita006d467fbf1d405e73cd167829d7a9e3df600e3 (patch)
tree02b24dbc19e3b21a06168ee451f07c0973ed8e82 /include/uapi/linux/devlink.h
parentdevlink: Add support for region get command (diff)
downloadkernel-qcow2-linux-a006d467fbf1d405e73cd167829d7a9e3df600e3.tar.gz
kernel-qcow2-linux-a006d467fbf1d405e73cd167829d7a9e3df600e3.tar.xz
kernel-qcow2-linux-a006d467fbf1d405e73cd167829d7a9e3df600e3.zip
devlink: Extend the support querying for region snapshot IDs
Extend the support for DEVLINK_CMD_REGION_GET command to also return the IDs of the snapshot currently present on the region. Each reply will include a nested snapshots attribute that can contain multiple snapshot attributes each with an ID. Signed-off-by: Alex Vesker <valex@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/devlink.h')
-rw-r--r--include/uapi/linux/devlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 28bfa8aa3d91..abde4e306375 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -267,6 +267,9 @@ enum devlink_attr {
DEVLINK_ATTR_REGION_NAME, /* string */
DEVLINK_ATTR_REGION_SIZE, /* u64 */
+ DEVLINK_ATTR_REGION_SNAPSHOTS, /* nested */
+ DEVLINK_ATTR_REGION_SNAPSHOT, /* nested */
+ DEVLINK_ATTR_REGION_SNAPSHOT_ID, /* u32 */
/* add new attributes above here, update the policy in devlink.c */