DEVLINK-DEV(8) | Linux | DEVLINK-DEV(8) |
vdpa-dev - vdpa device configuration
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 ]
DEV - specifies the vdpa device to show. If this argument is omitted all devices are listed.
Format is:
VDPA_DEVICE_NAME
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.
DEV - specifies the vdpa device to delete.
DEV - specifies the vdpa device to show its configuration. If this argument is omitted all devices configuration is listed.
Format is:
VDPA_DEVICE_NAME
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.
vdpa dev show
vdpa dev show foo
vdpa dev add name foo mgmtdev vdpa_sim_net
vdpa dev add name foo mgmtdev vdpa_sim_net device_features 0x300020000
vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55
vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55 mtu 9000
vdpa dev add name foo mgmtdev auxiliary/mlx5_core.sf.1 mac 00:11:22:33:44:55 max_vqp 8
vdpa dev del foo
vdpa dev config show foo
vdpa dev vstats show vdpa0 qidx 1
vdpa dev set name vdpa0 mac 00:11:22:33:44:55
vdpa(8), vdpa-mgmtdev(8),
Parav Pandit <parav@nvidia.com>
5 Jan 2021 | iproute2 |