mirror_ubuntu-kernels/Documentation/networking/devlink
Jacob Keller a70e3f024d devlink: report maximum number of snapshots with regions
Each region has an independently configurable number of maximum
snapshots. This information is not reported to userspace, making it not
very discoverable. Fix this by adding a new
DEVLINK_ATTR_REGION_MAX_SNAPSHOST attribute which is used to report this
maximum.

Ex:

  $devlink region
  pci/0000:af:00.0/nvm-flash: size 10485760 snapshot [] max 1
  pci/0000:af:00.0/device-caps: size 4096 snapshot [] max 10
  pci/0000:af:00.1/nvm-flash: size 10485760 snapshot [] max 1
  pci/0000:af:00.1/device-caps: size 4096 snapshot [] max 10

This information enables users to understand why a new region command
may fail due to having too many existing snapshots.

Reported-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-01 14:28:55 +01:00
..
am65-nuss-cpsw-switch.rst net: ti: am65-cpsw-nuss: Add devlink support 2021-02-11 17:52:13 -08:00
bnxt.rst bnxt_en: Fix "fw.mgmt" and "fw.nsci" info via devlink info_get cb 2020-03-27 15:34:43 -07:00
devlink-dpipe.rst devlink: fix typo in documentation 2021-03-13 18:11:24 -08:00
devlink-flash.rst devlink: introduce flash update overwrite mask 2020-09-25 17:20:57 -07:00
devlink-health.rst docs: net: add missing devlink health cmd - trigger 2021-03-13 18:12:43 -08:00
devlink-info.rst devlink: Add support for board.serial_number to info_get cb. 2020-06-22 16:15:04 -07:00
devlink-params.rst devlink: Add new "enable_vnet" generic device param 2021-08-11 14:34:21 +01:00
devlink-port.rst Documentation: devlink rate objects 2021-06-02 14:08:37 -07:00
devlink-region.rst devlink: report maximum number of snapshots with regions 2021-10-01 14:28:55 +01:00
devlink-reload.rst devlink: Add Documentation/networking/devlink/devlink-reload.rst 2020-10-09 12:06:53 -07:00
devlink-resource.rst mlxsw: Register physical ports as a devlink resource 2021-01-22 20:42:13 -08:00
devlink-trap.rst Networking changes for 5.14. 2021-06-30 15:51:09 -07:00
hns3.rst devlink: add documentation for hns3 driver 2021-07-26 12:16:03 +01:00
ice.rst devlink: report maximum number of snapshots with regions 2021-10-01 14:28:55 +01:00
index.rst net: wwan: iosm: devlink fw flashing & cd collection documentation 2021-09-20 10:03:37 +01:00
ionic.rst devlink: add documentation for ionic device driver 2020-01-10 17:07:00 -08:00
iosm.rst net: wwan: iosm: devlink fw flashing & cd collection documentation 2021-09-20 10:03:37 +01: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 Documentation: devlink rate objects 2021-06-02 14:08:37 -07:00
nfp.rst devlink: document info versions for each driver 2020-01-10 17:06:59 -08:00
prestera.rst documentation: networking: devlink: fix prestera.rst formatting that causes build warnings 2021-06-17 11:22:46 -07: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