OSDN Git Service

devlink: Add support for region snapshot read command
authorAlex Vesker <valex@mellanox.com>
Thu, 12 Jul 2018 12:13:14 +0000 (15:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:37:13 +0000 (17:37 -0700)
commit4e54795a27f56102649f121a34b8445e42f79ccd
treecbf6cf97506f1ee17fd9aabfbd41ac8210cda9a0
parent866319bb9437614407ca36f8b16f89ab77a6a831
devlink: Add support for region snapshot read command

Add support for DEVLINK_CMD_REGION_READ_GET used for both reading
and dumping region data. Read allows reading from a region specific
address for given length. Dump allows reading the full region.
If only snapshot ID is provided a snapshot dump will be done.
If snapshot ID, Address and Length are provided a snapshot read
will done.

This is used for both snapshot access and will be used in the same
way to access current data on the region.

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