vdpa-dev - vdpa device configuration
Contents
Description
vdpadevshow-displayvdpadeviceattributesDEV - specifies the vdpa device to show. If this argument is omitted all devices are listed.
Format is:
VDPA_DEVICE_NAME
vdpadevadd-addanewvdpadevice.nameNAME
Name of the new vdpa device to add.
mgmtdevMGMTDEV
Name of the management device to use for device addition.
device_featuresDEVICE_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.
macMACADDR - specifies the mac address for the new vdpa device. This is applicable only for the network
type of vdpa device. This is optional.
mtuMTU - specifies the mtu for the new vdpa device. This is applicable only for the network type of
vdpa device. This is optional.
vdpadevdel-Deletethevdpadevice.DEV - specifies the vdpa device to delete.
vdpadevconfigshow-Showconfigurationofspecificdeviceoralldevices.DEV - specifies the vdpa device to show its configuration. If this argument is omitted all devices
configuration is listed.
Format is:
VDPA_DEVICE_NAME
vdpadevvstatsshow-showsvendorspecificstatisticsforthegivendeviceandvirtqueueindex.Theinformationispresentedasname-valuepairswherenameisthenameofthefieldandvalueisanumericvalueforit.DEV - specifies the vdpa device to query
qidxQUEUE_INDEX
- specifies the virtqueue index to query
vdpadevset-settheconfigurationtothevdpadevice.nameNAME -Name of the vdpa device to configure.
macMACADDR - specifies the mac address for the vdpa device. This is applicable only for the network
type of vdpa device.
Examples
vdpa dev show
Shows the 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
Name
vdpa-dev - vdpa device configuration
See Also
vdpa(8), vdpa-mgmtdev(8),
Synopsis
vdpadev [ OPTIONS ] { COMMAND| help }
OPTIONS := { -V[ersion] }
vdpadevshow [ DEV ]
vdpadevhelpvdpadevaddnameNAMEmgmtdevMGMTDEV [ device_features DEVICE_FEATURES ] [ mac MACADDR ] [ mtu MTU ] [
max_vqp MAX_VQ_PAIRS ]
vdpadevdelDEVvdpadevconfigshow [ DEV ]
vdpadevvstatsshowDEVqidxQUEUE_INDEXvdpadevsetnameNAMEmac [ MACADDR ]
