linux-yocto/Documentation/networking/devlink
Jacob Keller b9a17abfde devlink: implement DEVLINK_CMD_REGION_NEW
Implement support for the DEVLINK_CMD_REGION_NEW command for creating
snapshots. This new command parallels the existing
DEVLINK_CMD_REGION_DEL.

In order for DEVLINK_CMD_REGION_NEW to work for a region, the new
".snapshot" operation must be implemented in the region's ops structure.

The desired snapshot id must be provided. This helps avoid confusion on
the purpose of DEVLINK_CMD_REGION_NEW, and keeps the API simpler.

The requested id will be inserted into the xarray tracking the number of
snapshots using each id. If this id is already used by another snapshot
on any region, an error will be returned.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-26 19:39:26 -07:00
..
bnxt.rst devlink: document devlink info versions reported by bnxt_en driver 2020-01-27 11:33:29 +01:00
devlink-dpipe.rst devlink: introduce devlink-dpipe.rst documentation file 2020-01-10 17:07:00 -08:00
devlink-flash.rst devlink: expand the devlink-info documentation 2020-03-24 16:47:33 -07:00
devlink-health.rst devlink: convert devlink-health.txt to rst format 2020-01-10 17:06:59 -08:00
devlink-info.rst devlink: expand the devlink-info documentation 2020-03-24 16:47:33 -07:00
devlink-params.rst devlink: expand the devlink-info documentation 2020-03-24 16:47:33 -07:00
devlink-region.rst devlink: implement DEVLINK_CMD_REGION_NEW 2020-03-26 19:39:26 -07:00
devlink-resource.rst devlink: add a devlink-resource.rst documentation file 2020-01-10 17:07:00 -08:00
devlink-trap.rst devlink: add ACL generic packet traps 2020-02-24 11:55:06 -08:00
ice.rst ice: add board identifier info to devlink .info_get 2020-03-21 01:02:19 -07:00
index.rst devlink: expand the devlink-info documentation 2020-03-24 16:47:33 -07:00
ionic.rst devlink: add documentation for ionic device driver 2020-01-10 17:07:00 -08:00
mlx4.rst devlink: add a file documenting devlink regions 2020-01-10 17:07:00 -08:00
mlx5.rst net/mlx5e: Add devlink fdb_large_groups parameter 2020-02-27 16:40:19 -08:00
mlxsw.rst mlxsw: Add irif and erif disabled traps 2020-01-19 16:23:52 +01:00
mv88e6xxx.rst devlink: convert driver-specific files to reStructuredText 2020-01-10 17:06:59 -08:00
netdevsim.rst devlink: rename and expand devlink-trap-netdevsim.rst 2020-01-10 17:07:00 -08:00
nfp.rst devlink: document info versions for each driver 2020-01-10 17:06:59 -08:00
qed.rst devlink: fix typos in qed documentation 2020-01-15 23:14:31 +01:00
ti-cpsw-switch.rst devlink: convert driver-specific files to reStructuredText 2020-01-10 17:06:59 -08:00