| DEVLINK-RESOURCE(8) | Linux | DEVLINK-RESOURCE(8) |
NAME
devlink-resource - devlink device resource configuration
SYNOPSIS
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
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
devlink resource show
devlink resource show pci/0000:01:00.0
devlink resource show pci/0000:01:00.0/1
devlink resource set pci/0000:01:00.0 path /kvd/linear size 98304
SEE ALSO
devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8),
AUTHOR
Arkadi Sharshevsky <arkadis@mellanox.com>
| 11 Feb 2018 | iproute2 |