-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for VDPA devices management
Current implementation support following functions: - VDPANewDev - VDPADelDev - VDPAGetDevList - VDPAGetDevByName - VDPAGetDevConfigList - VDPAGetDevConfigByName - VDPAGetDevVStats - VDPAGetMGMTDevList - VDPAGetMGMTDevByBusAndName Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
- Loading branch information
1 parent
06219cd
commit 857968a
Showing
5 changed files
with
929 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package nl | ||
|
||
const ( | ||
VDPA_GENL_NAME = "vdpa" | ||
VDPA_GENL_VERSION = 0x1 | ||
) | ||
|
||
const ( | ||
VDPA_CMD_UNSPEC = iota | ||
VDPA_CMD_MGMTDEV_NEW | ||
VDPA_CMD_MGMTDEV_GET /* can dump */ | ||
VDPA_CMD_DEV_NEW | ||
VDPA_CMD_DEV_DEL | ||
VDPA_CMD_DEV_GET /* can dump */ | ||
VDPA_CMD_DEV_CONFIG_GET /* can dump */ | ||
VDPA_CMD_DEV_VSTATS_GET | ||
) | ||
|
||
const ( | ||
VDPA_ATTR_UNSPEC = iota | ||
VDPA_ATTR_MGMTDEV_BUS_NAME | ||
VDPA_ATTR_MGMTDEV_DEV_NAME | ||
VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES | ||
VDPA_ATTR_DEV_NAME | ||
VDPA_ATTR_DEV_ID | ||
VDPA_ATTR_DEV_VENDOR_ID | ||
VDPA_ATTR_DEV_MAX_VQS | ||
VDPA_ATTR_DEV_MAX_VQ_SIZE | ||
VDPA_ATTR_DEV_MIN_VQ_SIZE | ||
VDPA_ATTR_DEV_NET_CFG_MACADDR | ||
VDPA_ATTR_DEV_NET_STATUS | ||
VDPA_ATTR_DEV_NET_CFG_MAX_VQP | ||
VDPA_ATTR_DEV_NET_CFG_MTU | ||
VDPA_ATTR_DEV_NEGOTIATED_FEATURES | ||
VDPA_ATTR_DEV_MGMTDEV_MAX_VQS | ||
VDPA_ATTR_DEV_SUPPORTED_FEATURES | ||
VDPA_ATTR_DEV_QUEUE_INDEX | ||
VDPA_ATTR_DEV_VENDOR_ATTR_NAME | ||
VDPA_ATTR_DEV_VENDOR_ATTR_VALUE | ||
VDPA_ATTR_DEV_FEATURES | ||
) |
Oops, something went wrong.