diff options
author | Alex Vesker <valex@mellanox.com> | 2018-07-12 15:13:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-13 03:37:13 +0300 |
commit | a006d467fbf1d405e73cd167829d7a9e3df600e3 (patch) | |
tree | 02b24dbc19e3b21a06168ee451f07c0973ed8e82 /include/uapi/linux/devlink.h | |
parent | d8db7ea55f2ff5890ad31137233a3808d80c7f62 (diff) | |
download | linux-a006d467fbf1d405e73cd167829d7a9e3df600e3.tar.xz |
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.h | 3 |
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 */ |