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

# [NAME](#NAME)

devlink-resource - devlink device resource configuration

# [SYNOPSIS](#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](#DESCRIPTION)

## [devlink resource show - display devlink device resources](#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 }**](#scope)

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](#devlink_resource_set_-_sets_resource_size_of_specific_resource)

*DEV* - specifies the devlink device.

[**path RESOURCE\_PATH**](#path)

Resource's path.

[**size RESOURCE\_SIZE**](#size)

The new resource's size.

# [EXAMPLES](#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.

# [SEE ALSO](#SEE_ALSO)

[**devlink**(8)](/man/os/iproute2/devlink.8), [**devlink-port**(8)](/man/os/iproute2/devlink-port.8), [**devlink-sb**(8)](/man/os/iproute2/devlink-sb.8), [**devlink-monitor**(8)](/man/os/iproute2/devlink-monitor.8),

# [AUTHOR](#AUTHOR)

Arkadi Sharshevsky &lt;arkadis@mellanox.com&gt;

11 Feb 2018 iproute2

---

Document: devlink-resource(8) from iproute2 7.2.0-r0 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/network/iproute2/iproute2
