Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: vdpa.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* vdpa device management interface
[2] Fix | Delete
* Copyright (c) 2020 Mellanox Technologies Ltd. All rights reserved.
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
#ifndef _LINUX_VDPA_H_
[6] Fix | Delete
#define _LINUX_VDPA_H_
[7] Fix | Delete
[8] Fix | Delete
#define VDPA_GENL_NAME "vdpa"
[9] Fix | Delete
#define VDPA_GENL_VERSION 0x1
[10] Fix | Delete
[11] Fix | Delete
enum vdpa_command {
[12] Fix | Delete
VDPA_CMD_UNSPEC,
[13] Fix | Delete
VDPA_CMD_MGMTDEV_NEW,
[14] Fix | Delete
VDPA_CMD_MGMTDEV_GET, /* can dump */
[15] Fix | Delete
VDPA_CMD_DEV_NEW,
[16] Fix | Delete
VDPA_CMD_DEV_DEL,
[17] Fix | Delete
VDPA_CMD_DEV_GET, /* can dump */
[18] Fix | Delete
VDPA_CMD_DEV_CONFIG_GET, /* can dump */
[19] Fix | Delete
};
[20] Fix | Delete
[21] Fix | Delete
enum vdpa_attr {
[22] Fix | Delete
VDPA_ATTR_UNSPEC,
[23] Fix | Delete
[24] Fix | Delete
/* Pad attribute for 64b alignment */
[25] Fix | Delete
VDPA_ATTR_PAD = VDPA_ATTR_UNSPEC,
[26] Fix | Delete
[27] Fix | Delete
/* bus name (optional) + dev name together make the parent device handle */
[28] Fix | Delete
VDPA_ATTR_MGMTDEV_BUS_NAME, /* string */
[29] Fix | Delete
VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */
[30] Fix | Delete
VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */
[31] Fix | Delete
[32] Fix | Delete
VDPA_ATTR_DEV_NAME, /* string */
[33] Fix | Delete
VDPA_ATTR_DEV_ID, /* u32 */
[34] Fix | Delete
VDPA_ATTR_DEV_VENDOR_ID, /* u32 */
[35] Fix | Delete
VDPA_ATTR_DEV_MAX_VQS, /* u32 */
[36] Fix | Delete
VDPA_ATTR_DEV_MAX_VQ_SIZE, /* u16 */
[37] Fix | Delete
VDPA_ATTR_DEV_MIN_VQ_SIZE, /* u16 */
[38] Fix | Delete
[39] Fix | Delete
VDPA_ATTR_DEV_NET_CFG_MACADDR, /* binary */
[40] Fix | Delete
VDPA_ATTR_DEV_NET_STATUS, /* u8 */
[41] Fix | Delete
VDPA_ATTR_DEV_NET_CFG_MAX_VQP, /* u16 */
[42] Fix | Delete
VDPA_ATTR_DEV_NET_CFG_MTU, /* u16 */
[43] Fix | Delete
[44] Fix | Delete
VDPA_ATTR_DEV_NEGOTIATED_FEATURES, /* u64 */
[45] Fix | Delete
VDPA_ATTR_DEV_MGMTDEV_MAX_VQS, /* u32 */
[46] Fix | Delete
VDPA_ATTR_DEV_SUPPORTED_FEATURES, /* u64 */
[47] Fix | Delete
/* new attributes must be added above here */
[48] Fix | Delete
VDPA_ATTR_MAX,
[49] Fix | Delete
};
[50] Fix | Delete
[51] Fix | Delete
#endif
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function