]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: add support for DEVLINK_CMD_REGION_NEW
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 28 Apr 2020 20:43:24 +0000 (13:43 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 30 Apr 2020 05:31:55 +0000 (22:31 -0700)
commit7ae84fedcb15815a7488558b0b319cffdd12a565
treec3d2f7f70494e854da6269533ea455951136bea7
parent2b93f66863a91251e6e974de05d7ea5d7fba8949
devlink: add support for DEVLINK_CMD_REGION_NEW

Add support to request that a new snapshot be taken immediately for
a devlink region. To avoid confusion, the desired snapshot id must be
provided.

Note that if a region does not support snapshots on demand, the kernel
will reject the request with -EOPNOTSUP.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c