Tue, Feb 03, 2026 at 08:10:33AM +0100, [email protected] wrote: >From: Or Har-Toov <[email protected]> > >Add documentation for the port-level resource feature to >devlink-resource.rst. Port-level resources allow viewing resources >associated with specific devlink ports. > >Currently, port-level resources only support the show command for >viewing resource information. > >Signed-off-by: Or Har-Toov <[email protected]> >Reviewed-by: Shay Drori <[email protected]> >Reviewed-by: Moshe Shemesh <[email protected]> >Signed-off-by: Tariq Toukan <[email protected]> >--- > .../networking/devlink/devlink-resource.rst | 36 +++++++++++++++++++ > 1 file changed, 36 insertions(+) > >diff --git a/Documentation/networking/devlink/devlink-resource.rst >b/Documentation/networking/devlink/devlink-resource.rst >index 3d5ae51e65a2..4cdfc1dce180 100644 >--- a/Documentation/networking/devlink/devlink-resource.rst >+++ b/Documentation/networking/devlink/devlink-resource.rst >@@ -74,3 +74,39 @@ attribute, which represents the pending change in size. For >example: > > Note that changes in resource size may require a device reload to properly > take effect. >+ >+Port-level Resources >+==================== >+ >+In addition to device-level resources, ``devlink`` also supports port-level >+resources. These resources are associated with a specific devlink port rather >+than the device as a whole. >+ >+Currently, port-level resources only support the ``show`` command for viewing >+resource information. >+ >+Port-level resources can be viewed for a specific port: >+ >+.. code:: shell >+ >+ $ devlink port resource show pci/0000:03:00.0/196608 >+ pci/0000:03:00.0/196608: >+ name max_sfs size 20 unit entry >+ >+Or for ports of a specific device: >+ >+.. code:: shell >+ >+ $ devlink port resource show pci/0000:03:00.0 >+ pci/0000:03:00.0/196608: >+ name max_sfs size 20 unit entry >+ >+Or for all ports across all devices: >+ >+.. code:: shell >+ >+ $ devlink port resource show >+ pci/0000:03:00.0/196608: >+ name max_sfs size 20 unit entry >+ pci/0000:03:00.1/262144: >+ name max_SFs size 20 unit entry
"max_SFs" vs "max_sfs", be consistent. Better to copy-paste actual command output :) >-- >2.40.1 >
