VDPA-DEV(8)
๐ VDPA-DEV โ vdpa device configuration ๐
okay bestie, welcome to vdpa-dev, the manual page from the Linux fam that teaches you how to configure your vdpa devices. it's giving "niche but iconic" and honestly? obsessed. let's get into it ๐ฆ
โจ 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 ]
like, that's the whole vibe at a glance ๐ everything below is the same thing but with feelings.
๐ธ DESCRIPTION ๐ธ
๐ vdpa dev show โ display vdpa device attributes ๐
DEVโ this one says which vdpa device you wanna show, bestie. and if you justโฆ don't pass it? then all devices get listed, no cap.
the format is literally this and nothing else:
VDPA_DEVICE_NAME
๐ vdpa dev add โ add a new vdpa device ๐
like, birthing a whole new device. main character energy fr fr.
name NAMEโ the name of the brand new vdpa device you're adding. yes, you get to pick it. slay.mgmtdev MGMTDEVโ the name of the management device you're using to do the adding. it's the plug, basically.device_features DEVICE_FEATURESโ this specifies the virtio device features bit-mask that gets provisioned for your new vdpa device โจ
the bits live under include/uapi/linux/virtio*.h.
go look at macros like VIRTIO_F_ and VIRTIO_XXX (e.g., NET)_F_ for the specific bit values ๐
this one is optional, so you can totally skip it.
mac MACADDRโ specifies the mac address for the new vdpa device. heads up tho: this is applicable only for the network type of vdpa device. also optional. ๐mtu MTUโ specifies the mtu for the new vdpa device. same deal: applicable only for the network type of vdpa device, and also optional. ๐
๐ vdpa dev del โ Delete the vdpa device ๐
DEVโ specifies the vdpa device to delete. bye bitch ๐ (affectionately).
๐ vdpa dev config show โ Show configuration of specific device or all devices ๐
DEVโ specifies the vdpa device whose configuration you wanna see. omit it and all devices' configuration gets listed. your choice bestie.
the format is:
VDPA_DEVICE_NAME
๐ vdpa dev vstats show โ show vendor specific statistics ๐
shows vendor specific statistics for the given device and virtqueue index, periodt. the info comes at you as name-value pairs where the name is the name of the field and the value is a numeric value for it. cute, right?
DEVโ specifies the vdpa device to query.qidx QUEUE_INDEXโ specifies the virtqueue index to query.
๐ vdpa dev set โ set the configuration to the vdpa device ๐
name NAMEโ name of the vdpa device you're configuring.mac MACADDRโ specifies the mac address for the vdpa device. this is applicable only for the network type of vdpa device. no exceptions, iykyk.
๐ EXAMPLES ๐
vdpa dev showshows all vdpa devices on the system. the whole roster ๐ฅvdpa dev show fooshows the specified vdpa device. just foo. only foo.vdpa dev add name foo mgmtdev vdpa_sim_netadd the vdpa device namedfooon the management devicevdpa_sim_net.vdpa dev add name foo mgmtdev vdpa_sim_net device_features 0x300020000add the vdpa device namedfooon the management devicevdpa_sim_netwithdevice_featuresof0x300020000.vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55add the vdpa device namedfooon the management devicevdpa_sim_netwith mac address of00:11:22:33:44:55.vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55 mtu 9000add the vdpa device namedfooon the management devicevdpa_sim_netwith mac address of00:11:22:33:44:55and mtu of9000bytes.vdpa dev add name foo mgmtdev auxiliary/mlx5_core.sf.1 mac 00:11:22:33:44:55 max_vqp 8add the vdpa device namedfooon the management deviceauxiliary/mlx5_core.sf.1with mac address of00:11:22:33:44:55and max8virtqueue pairs.vdpa dev del foodelete the vdpa device namedfoowhich was previously created. rip to foo ๐ชฆvdpa dev config show fooshows the vdpa device configuration of device namedfoo.vdpa dev vstats show vdpa0 qidx 1shows vendor specific statistics information for vdpa devicevdpa0and virtqueue index1.vdpa dev set name vdpa0 mac 00:11:22:33:44:55set a specific MAC address to vdpa devicevdpa0.
๐ SEE ALSO ๐
go read those too bestie, they're part of the lore ๐
๐ซถ AUTHOR ๐ซถ
Parav Pandit <parav@nvidia.com> โ thank you for your service, king ๐
and that's the whole page!! this came to you from iproute2, dated 5 Jan 2021, and it's the VDPA-DEV(8) manual page from the Linux set. mwah, go configure something gorgeous ๐โจ๐
๐ฆ where this page comes from
- alpine 3.24: iproute2-doc 7.0.0-r0 ยท GPL-2.0-or-later
- arch rolling: iproute2 7.2.0-1
- arch rolling: iproute2 7.3.0-1 ยท GPL-2.0-or-later
- centos-stream 10: iproute 7.0.0-2.el10 ยท GPL-2.0-or-later AND NIST-PD
- nixos 26.05: iproute2 7.0.0
- nixpkgs unstable: iproute2 7.2.0
- ubuntu stonking: iproute2 7.2.0-1ubuntu1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms