devlink: Add callback to query for snapshot id before snapshot create
authorAlex Vesker <valex@mellanox.com>
Thu, 12 Jul 2018 12:13:09 +0000 (15:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:37:12 +0000 (17:37 -0700)
commitccadfa444b34c6ec7bb458eee17fdd8c9a456c63
treeadb65c4f7fde4d7563889d9f89774c7097c3aaa0
parentb16ebe925a4400a2ec3dc663c81dce2fd9bf0998
devlink: Add callback to query for snapshot id before snapshot create

To restrict the driver with the snapshot ID selection a new callback
is introduced for the driver to get the snapshot ID before creating
a new snapshot. This will also allow giving the same ID for multiple
snapshots taken of different regions on the same time.

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/net/devlink.h
net/core/devlink.c