devlink: Extend the support querying for region snapshot IDs
authorAlex Vesker <valex@mellanox.com>
Thu, 12 Jul 2018 12:13:12 +0000 (15:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:37:13 +0000 (17:37 -0700)
commita006d467fbf1d405e73cd167829d7a9e3df600e3
tree02b24dbc19e3b21a06168ee451f07c0973ed8e82
parentd8db7ea55f2ff5890ad31137233a3808d80c7f62
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>
include/uapi/linux/devlink.h
net/core/devlink.c