Add the ability to add and delete a vdpa device. Examples: Create a vdpa device of type network named "foo2" from the management device vdpasim: $ vdpa dev add mgmtdev vdpasim_net name foo2 Delete the vdpa device after its use: $ vdpa dev del foo2
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -14,6 +14,8 @@ enum vdpa_command { · 13 unmodified lines | ||
| 14 | 14 | VDPA_CMD_UNSPEC, |
| 15 | 15 | VDPA_CMD_MGMTDEV_NEW, |
| 16 | 16 | VDPA_CMD_MGMTDEV_GET, /* can dump */ |
| 17 | + VDPA_CMD_DEV_NEW, | |
| 18 | + VDPA_CMD_DEV_DEL, | |
| 17 | 19 | }; |
| 18 | 20 | |
| 19 | 21 | enum vdpa_attr { |
| @@ -24,6 +26,8 @@ enum vdpa_attr { · 4 unmodified lines | ||
| 24 | 26 | VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */ |
| 25 | 27 | VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */ |
| 26 | 28 | |
| 29 | + VDPA_ATTR_DEV_NAME, /* string */ | |
| 30 | + | |
| 27 | 31 | /* new attributes must be added above here */ |
| 28 | 32 | VDPA_ATTR_MAX, |
| 29 | 33 | }; |