VDPA-DEV(8) Linux VDPA-DEV(8)

# [NAME](#NAME)

vdpa-dev - vdpa device configuration

# [SYNOPSIS](#SYNOPSIS)

**vdpa** **dev** \[ *OPTIONS* ] { *COMMAND*| **help** }

*OPTIONS* := { **-V**\[*ersion*] }

**vdpa dev show** \[ *DEV* ]

**vdpa dev help**

**vdpa dev add** **name** *NAME* **mgmtdev** *MGMTDEV* \[ device\_features *DEVICE\_FEATURES* ] \[ mac *MACADDR* ] \[ mtu *MTU* ] \[ max\_vqp *MAX\_VQ\_PAIRS* ]

**vdpa dev del** *DEV*

**vdpa dev config show** \[ *DEV* ]

**vdpa dev vstats show** *DEV* **qidx** *QUEUE\_INDEX*

**vdpa dev set** **name** *NAME* **mac** \[ *MACADDR* ]

# [DESCRIPTION](#DESCRIPTION)

## [vdpa dev show - display vdpa device attributes](#vdpa_dev_show_-_display_vdpa_device_attributes)

*DEV* - specifies the vdpa device to show. If this argument is omitted all devices are listed.

Format is:  
VDPA\_DEVICE\_NAME

## [vdpa dev add - add a new vdpa device.](#vdpa_dev_add_-_add_a_new_vdpa_device.)

[**name NAME**](#name)

Name of the new vdpa device to add.

[**mgmtdev MGMTDEV**](#mgmtdev)

Name of the management device to use for device addition.

**device\_features DEVICE\_FEATURES** Specifies the virtio device features bit-mask that is provisioned for the new vdpa device.

The bits can be found under include/uapi/linux/virtio\*.h.

See macros such as VIRTIO\_F_ and VIRTIO\_XXX (e.g., NET)\_F_ for specific bit values.

This is optional.

**mac MACADDR** - specifies the mac address for the new vdpa device. This is applicable only for the network type of vdpa device. This is optional.

**mtu MTU** - specifies the mtu for the new vdpa device. This is applicable only for the network type of vdpa device. This is optional.

## [vdpa dev del - Delete the vdpa device.](#vdpa_dev_del_-_Delete_the_vdpa_device.)

*DEV* - specifies the vdpa device to delete.

## [vdpa dev config show - Show configuration of specific device or all devices.](#vdpa_dev_config_show_-_Show_configuration_of_specific_device_or_all_devices.)

*DEV* - specifies the vdpa device to show its configuration. If this argument is omitted all devices configuration is listed.

Format is:  
VDPA\_DEVICE\_NAME

## [vdpa dev vstats show - show vendor specific statistics](#vdpa_dev_vstats_show_-_show_vendor_specific_statistics)

Shows vendor specific statistics for the given device and virtqueue index. The information is presented as name-value pairs where name is the name of the field and value is a numeric value for it.

[**DEV**](#DEV)

\- specifies the vdpa device to query

[**qidx QUEUE\_INDEX**](#qidx)

\- specifies the virtqueue index to query

## [vdpa dev set - set the configuration to the vdpa device.](#vdpa_dev_set_-_set_the_configuration_to_the_vdpa_device.)

**name NAME** - Name of the vdpa device to configure.

**mac MACADDR** - specifies the mac address for the vdpa device. This is applicable only for the network type of vdpa device.

# [EXAMPLES](#EXAMPLES)

vdpa dev show

Shows all vdpa devices on the system.

vdpa dev show foo

Shows the specified vdpa device.

vdpa dev add name foo mgmtdev vdpa\_sim\_net

Add the vdpa device named foo on the management device vdpa\_sim\_net.

vdpa dev add name foo mgmtdev vdpa\_sim\_net device\_features 0x300020000

Add the vdpa device named foo on the management device vdpa\_sim\_net with device\_features of 0x300020000.

vdpa dev add name foo mgmtdev vdpa\_sim\_net mac 00:11:22:33:44:55

Add the vdpa device named foo on the management device vdpa\_sim\_net with mac address of 00:11:22:33:44:55.

vdpa dev add name foo mgmtdev vdpa\_sim\_net mac 00:11:22:33:44:55 mtu 9000

Add the vdpa device named foo on the management device vdpa\_sim\_net with mac address of 00:11:22:33:44:55 and mtu of 9000 bytes.

vdpa dev add name foo mgmtdev auxiliary/mlx5\_core.sf.1 mac 00:11:22:33:44:55 max\_vqp 8

Add the vdpa device named foo on the management device auxiliary/mlx5\_core.sf.1 with mac address of 00:11:22:33:44:55 and max 8 virtqueue pairs.

vdpa dev del foo

Delete the vdpa device named foo which was previously created.

vdpa dev config show foo

Shows the vdpa device configuration of device named foo.

vdpa dev vstats show vdpa0 qidx 1

Shows vendor specific statistics information for vdpa device vdpa0 and virtqueue index 1

vdpa dev set name vdpa0 mac 00:11:22:33:44:55

Set a specific MAC address to vdpa device vdpa0

# [SEE ALSO](#SEE_ALSO)

[**vdpa**(8)](/man/os/iproute2/vdpa.8), [**vdpa-mgmtdev**(8)](/man/os/iproute2/vdpa-mgmtdev.8),

# [AUTHOR](#AUTHOR)

Parav Pandit &lt;parav@nvidia.com&gt;

5 Jan 2021 iproute2

---

Document: vdpa-dev(8) from iproute2 7.2.0-r1 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/network/iproute2/iproute2
