devlink-resource(8) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | SEE ALSO | AUTHOR | COLOPHON

DEVLINK-RESOURCE(8)               Linux               DEVLINK-RESOURCE(8)

NAME         top

       devlink-resource - devlink device resource configuration

SYNOPSIS         top

       devlink [ OPTIONS ] resource  { COMMAND | help }

       OPTIONS := { -v[erbose] }

       devlink resource show [ DEV[/PORT_INDEX] | scope { dev | port } ]

       devlink resource help

       devlink resource set DEV path RESOURCE_PATH size RESOURCE_SIZE

DESCRIPTION         top

   devlink resource show - display devlink device resources
       DEV - specifies the devlink device to show.  If omitted, all
       devices are listed.

           Format is:
             BUS_NAME/BUS_ADDRESS

       PORT_INDEX - specifies the port to show resources for.  When
       given, only port-level resources for that port are shown.

           Format is:
             BUS_NAME/BUS_ADDRESS/PORT_INDEX

       scope { dev | port }
              Filter resources by scope.  dev shows only device-level
              resources.  port shows only port-level resources.  When
              omitted, resources of both scopes are shown.

   devlink resource set - sets resource size of specific resource
       DEV - specifies the devlink device.

       path RESOURCE_PATH
              Resource's path.

       size RESOURCE_SIZE
              The new resource's size.

EXAMPLES         top

       devlink resource show
           Shows resources for all devlink devices.

       devlink resource show pci/0000:01:00.0
           Shows the resources of the specified devlink device.

       devlink resource show pci/0000:01:00.0/1
           Shows port-level resources for port 1 of the specified devlink
           device.

       devlink resource set pci/0000:01:00.0 path /kvd/linear size 98304
           Sets the size of the specified resource for the specified
           devlink device.

SEE ALSO         top

       devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8),

AUTHOR         top

       Arkadi Sharshevsky <arkadis@mellanox.com>

COLOPHON         top

       This page is part of the iproute2 (utilities for controlling
       TCP/IP networking and traffic) project.  Information about the
       project can be found at 
       ⟨http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2⟩.
       If you have a bug report for this manual page, send it to
       netdev@vger.kernel.org, shemminger@osdl.org.  This page was
       obtained from the project's upstream Git repository
       ⟨https://git.kernel.org/pub/scm/network/iproute2/iproute2.git⟩ on
       2026-08-04.  (At that time, the date of the most recent commit
       that was found in the repository was 2026-07-28.)  If you discover
       any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a
       mail to man-pages@man7.org

iproute2                       11 Feb 2018            DEVLINK-RESOURCE(8)

Pages that refer to this page: devlink(8)