devlink-resource8
Devlink device resource configuration
Usage
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
Overview
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.
devshows only device-level resources.portshows 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.
|
Resource's path. |
|---|---|
|
The new resource's size. |
Examples
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.
Releases
5 releases since Debian 10 (Buster); the text changed 3 times.