1DEVLINK-DEV(8)                       Linux                      DEVLINK-DEV(8)
2
3
4

NAME

6       vdpa-dev - vdpa device configuration
7

SYNOPSIS

9       vdpa dev [ OPTIONS ]  { COMMAND| help }
10
11
12       OPTIONS := { -V[ersion] }
13
14       vdpa dev show [ DEV ]
15
16       vdpa dev help
17
18       vdpa dev add name NAME mgmtdev MGMTDEV [ device_features DEVICE_FEA‐
19               TURES ] [ mac MACADDR ] [ mtu MTU ] [ max_vqp MAX_VQ_PAIRS ]
20
21       vdpa dev del DEV
22
23       vdpa dev config show [ DEV ]
24
25       vdpa dev vstats show DEV qidx QUEUE_INDEX
26
27
28

DESCRIPTION

30   vdpa dev show - display vdpa device attributes
31       DEV - specifies the vdpa device to show.  If this argument is omitted
32       all devices are listed.
33
34           Format is:
35             VDPA_DEVICE_NAME
36
37
38   vdpa dev add - add a new vdpa device.
39       name NAME
40              Name of the new vdpa device to add.
41
42
43       mgmtdev MGMTDEV
44              Name of the management device to use for device addition.
45
46
47       device_features DEVICE_FEATURES Specifies the virtio device features
48       bit-mask that is provisioned for the new vdpa device.
49
50       The bits can be found under include/uapi/linux/virtio*h.
51
52       see macros such as VIRTIO_F_ and VIRTIO_XXX(e.g NET)_F_ for specific
53       bit values.
54
55       This is optional.
56
57       mac MACADDR - specifies the mac address for the new vdpa device.  This
58       is applicable only for the network type of vdpa device. This is op‐
59       tional.
60
61       mtu MTU - specifies the mtu for the new vdpa device.  This is applica‐
62       ble only for the network type of vdpa device. This is optional.
63
64
65   vdpa dev del - Delete the vdpa device.
66       DEV - specifies the vdpa device to delete.
67
68
69   vdpa dev config show - Show configuration of specific device or all de‐
70       vices.
71       DEV - specifies the vdpa device to show its configuration.  If this ar‐
72       gument is omitted all devices configuration is listed.
73
74           Format is:
75             VDPA_DEVICE_NAME
76
77
78   vdpa dev vstats show - shows vendor specific statistics for the given de‐
79       vice and virtqueue index. The information is presented as name-value
80       pairs where name is the name of the field and value is a numeric value
81       for it.
82       DEV    - specifies the vdpa device to query
83
84
85       qidx QUEUE_INDEX
86              - specifies the virtqueue index to query
87
88

EXAMPLES

90       vdpa dev show
91           Shows the all vdpa devices on the system.
92
93       vdpa dev show foo
94           Shows the specified vdpa device.
95
96       vdpa dev add name foo mgmtdev vdpa_sim_net
97           Add the vdpa device named foo on the management device
98           vdpa_sim_net.
99
100       vdpa dev add name foo mgmtdev vdpa_sim_net device_features 0x300020000
101           Add the vdpa device named foo on the management device vdpa_sim_net
102           with device_features of 0x300020000
103
104       vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55
105           Add the vdpa device named foo on the management device vdpa_sim_net
106           with mac address of 00:11:22:33:44:55.
107
108       vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55 mtu
109       9000
110           Add the vdpa device named foo on the management device vdpa_sim_net
111           with mac address of 00:11:22:33:44:55 and mtu of 9000 bytes.
112
113       vdpa dev add name foo mgmtdev auxiliary/mlx5_core.sf.1 mac
114       00:11:22:33:44:55 max_vqp 8
115           Add the vdpa device named foo on the management device auxil‐
116           iary/mlx5_core.sf.1 with mac address of 00:11:22:33:44:55 and max 8
117           virtqueue pairs
118
119       vdpa dev del foo
120           Delete the vdpa device named foo which was previously created.
121
122       vdpa dev config show foo
123           Shows the vdpa device configuration of device named foo.
124
125       vdpa dev vstats show vdpa0 qidx 1
126           Shows vendor specific statistics information for vdpa device vdpa0
127           and virtqueue index 1
128
129

SEE ALSO

131       vdpa(8), vdpa-mgmtdev(8),
132
133

AUTHOR

135       Parav Pandit <parav@nvidia.com>
136
137
138
139iproute2                          5 Jan 2021                    DEVLINK-DEV(8)
Impressum