Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: smc.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Shared Memory Communications over RDMA (SMC-R) and RoCE
[2] Fix | Delete
*
[3] Fix | Delete
* Definitions for generic netlink based configuration of an SMC-R PNET table
[4] Fix | Delete
*
[5] Fix | Delete
* Copyright IBM Corp. 2016
[6] Fix | Delete
*
[7] Fix | Delete
* Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com>
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
#ifndef _LINUX_SMC_H_
[11] Fix | Delete
#define _LINUX_SMC_H_
[12] Fix | Delete
[13] Fix | Delete
/* Netlink SMC_PNETID attributes */
[14] Fix | Delete
enum {
[15] Fix | Delete
SMC_PNETID_UNSPEC,
[16] Fix | Delete
SMC_PNETID_NAME,
[17] Fix | Delete
SMC_PNETID_ETHNAME,
[18] Fix | Delete
SMC_PNETID_IBNAME,
[19] Fix | Delete
SMC_PNETID_IBPORT,
[20] Fix | Delete
__SMC_PNETID_MAX,
[21] Fix | Delete
SMC_PNETID_MAX = __SMC_PNETID_MAX - 1
[22] Fix | Delete
};
[23] Fix | Delete
[24] Fix | Delete
enum { /* SMC PNET Table commands */
[25] Fix | Delete
SMC_PNETID_GET = 1,
[26] Fix | Delete
SMC_PNETID_ADD,
[27] Fix | Delete
SMC_PNETID_DEL,
[28] Fix | Delete
SMC_PNETID_FLUSH
[29] Fix | Delete
};
[30] Fix | Delete
[31] Fix | Delete
#define SMCR_GENL_FAMILY_NAME "SMC_PNETID"
[32] Fix | Delete
#define SMCR_GENL_FAMILY_VERSION 1
[33] Fix | Delete
[34] Fix | Delete
/* gennetlink interface to access non-socket information from SMC module */
[35] Fix | Delete
#define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK"
[36] Fix | Delete
#define SMC_GENL_FAMILY_VERSION 1
[37] Fix | Delete
[38] Fix | Delete
#define SMC_PCI_ID_STR_LEN 16 /* Max length of pci id string */
[39] Fix | Delete
#define SMC_MAX_HOSTNAME_LEN 32 /* Max length of the hostname */
[40] Fix | Delete
#define SMC_MAX_UEID 4 /* Max number of user EIDs */
[41] Fix | Delete
#define SMC_MAX_EID_LEN 32 /* Max length of an EID */
[42] Fix | Delete
[43] Fix | Delete
/* SMC_GENL_FAMILY commands */
[44] Fix | Delete
enum {
[45] Fix | Delete
SMC_NETLINK_GET_SYS_INFO = 1,
[46] Fix | Delete
SMC_NETLINK_GET_LGR_SMCR,
[47] Fix | Delete
SMC_NETLINK_GET_LINK_SMCR,
[48] Fix | Delete
SMC_NETLINK_GET_LGR_SMCD,
[49] Fix | Delete
SMC_NETLINK_GET_DEV_SMCD,
[50] Fix | Delete
SMC_NETLINK_GET_DEV_SMCR,
[51] Fix | Delete
SMC_NETLINK_GET_STATS,
[52] Fix | Delete
SMC_NETLINK_GET_FBACK_STATS,
[53] Fix | Delete
SMC_NETLINK_DUMP_UEID,
[54] Fix | Delete
SMC_NETLINK_ADD_UEID,
[55] Fix | Delete
SMC_NETLINK_REMOVE_UEID,
[56] Fix | Delete
SMC_NETLINK_FLUSH_UEID,
[57] Fix | Delete
SMC_NETLINK_DUMP_SEID,
[58] Fix | Delete
SMC_NETLINK_ENABLE_SEID,
[59] Fix | Delete
SMC_NETLINK_DISABLE_SEID,
[60] Fix | Delete
SMC_NETLINK_DUMP_HS_LIMITATION,
[61] Fix | Delete
SMC_NETLINK_ENABLE_HS_LIMITATION,
[62] Fix | Delete
SMC_NETLINK_DISABLE_HS_LIMITATION,
[63] Fix | Delete
};
[64] Fix | Delete
[65] Fix | Delete
/* SMC_GENL_FAMILY top level attributes */
[66] Fix | Delete
enum {
[67] Fix | Delete
SMC_GEN_UNSPEC,
[68] Fix | Delete
SMC_GEN_SYS_INFO, /* nest */
[69] Fix | Delete
SMC_GEN_LGR_SMCR, /* nest */
[70] Fix | Delete
SMC_GEN_LINK_SMCR, /* nest */
[71] Fix | Delete
SMC_GEN_LGR_SMCD, /* nest */
[72] Fix | Delete
SMC_GEN_DEV_SMCD, /* nest */
[73] Fix | Delete
SMC_GEN_DEV_SMCR, /* nest */
[74] Fix | Delete
SMC_GEN_STATS, /* nest */
[75] Fix | Delete
SMC_GEN_FBACK_STATS, /* nest */
[76] Fix | Delete
__SMC_GEN_MAX,
[77] Fix | Delete
SMC_GEN_MAX = __SMC_GEN_MAX - 1
[78] Fix | Delete
};
[79] Fix | Delete
[80] Fix | Delete
/* SMC_GEN_SYS_INFO attributes */
[81] Fix | Delete
enum {
[82] Fix | Delete
SMC_NLA_SYS_UNSPEC,
[83] Fix | Delete
SMC_NLA_SYS_VER, /* u8 */
[84] Fix | Delete
SMC_NLA_SYS_REL, /* u8 */
[85] Fix | Delete
SMC_NLA_SYS_IS_ISM_V2, /* u8 */
[86] Fix | Delete
SMC_NLA_SYS_LOCAL_HOST, /* string */
[87] Fix | Delete
SMC_NLA_SYS_SEID, /* string */
[88] Fix | Delete
SMC_NLA_SYS_IS_SMCR_V2, /* u8 */
[89] Fix | Delete
__SMC_NLA_SYS_MAX,
[90] Fix | Delete
SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1
[91] Fix | Delete
};
[92] Fix | Delete
[93] Fix | Delete
/* SMC_NLA_LGR_D_V2_COMMON and SMC_NLA_LGR_R_V2_COMMON nested attributes */
[94] Fix | Delete
enum {
[95] Fix | Delete
SMC_NLA_LGR_V2_VER, /* u8 */
[96] Fix | Delete
SMC_NLA_LGR_V2_REL, /* u8 */
[97] Fix | Delete
SMC_NLA_LGR_V2_OS, /* u8 */
[98] Fix | Delete
SMC_NLA_LGR_V2_NEG_EID, /* string */
[99] Fix | Delete
SMC_NLA_LGR_V2_PEER_HOST, /* string */
[100] Fix | Delete
__SMC_NLA_LGR_V2_MAX,
[101] Fix | Delete
SMC_NLA_LGR_V2_MAX = __SMC_NLA_LGR_V2_MAX - 1
[102] Fix | Delete
};
[103] Fix | Delete
[104] Fix | Delete
/* SMC_NLA_LGR_R_V2 nested attributes */
[105] Fix | Delete
enum {
[106] Fix | Delete
SMC_NLA_LGR_R_V2_UNSPEC,
[107] Fix | Delete
SMC_NLA_LGR_R_V2_DIRECT, /* u8 */
[108] Fix | Delete
__SMC_NLA_LGR_R_V2_MAX,
[109] Fix | Delete
SMC_NLA_LGR_R_V2_MAX = __SMC_NLA_LGR_R_V2_MAX - 1
[110] Fix | Delete
};
[111] Fix | Delete
[112] Fix | Delete
/* SMC_GEN_LGR_SMCR attributes */
[113] Fix | Delete
enum {
[114] Fix | Delete
SMC_NLA_LGR_R_UNSPEC,
[115] Fix | Delete
SMC_NLA_LGR_R_ID, /* u32 */
[116] Fix | Delete
SMC_NLA_LGR_R_ROLE, /* u8 */
[117] Fix | Delete
SMC_NLA_LGR_R_TYPE, /* u8 */
[118] Fix | Delete
SMC_NLA_LGR_R_PNETID, /* string */
[119] Fix | Delete
SMC_NLA_LGR_R_VLAN_ID, /* u8 */
[120] Fix | Delete
SMC_NLA_LGR_R_CONNS_NUM, /* u32 */
[121] Fix | Delete
SMC_NLA_LGR_R_V2_COMMON, /* nest */
[122] Fix | Delete
SMC_NLA_LGR_R_V2, /* nest */
[123] Fix | Delete
SMC_NLA_LGR_R_NET_COOKIE, /* u64 */
[124] Fix | Delete
SMC_NLA_LGR_R_PAD, /* flag */
[125] Fix | Delete
SMC_NLA_LGR_R_BUF_TYPE, /* u8 */
[126] Fix | Delete
__SMC_NLA_LGR_R_MAX,
[127] Fix | Delete
SMC_NLA_LGR_R_MAX = __SMC_NLA_LGR_R_MAX - 1
[128] Fix | Delete
};
[129] Fix | Delete
[130] Fix | Delete
/* SMC_GEN_LINK_SMCR attributes */
[131] Fix | Delete
enum {
[132] Fix | Delete
SMC_NLA_LINK_UNSPEC,
[133] Fix | Delete
SMC_NLA_LINK_ID, /* u8 */
[134] Fix | Delete
SMC_NLA_LINK_IB_DEV, /* string */
[135] Fix | Delete
SMC_NLA_LINK_IB_PORT, /* u8 */
[136] Fix | Delete
SMC_NLA_LINK_GID, /* string */
[137] Fix | Delete
SMC_NLA_LINK_PEER_GID, /* string */
[138] Fix | Delete
SMC_NLA_LINK_CONN_CNT, /* u32 */
[139] Fix | Delete
SMC_NLA_LINK_NET_DEV, /* u32 */
[140] Fix | Delete
SMC_NLA_LINK_UID, /* u32 */
[141] Fix | Delete
SMC_NLA_LINK_PEER_UID, /* u32 */
[142] Fix | Delete
SMC_NLA_LINK_STATE, /* u32 */
[143] Fix | Delete
__SMC_NLA_LINK_MAX,
[144] Fix | Delete
SMC_NLA_LINK_MAX = __SMC_NLA_LINK_MAX - 1
[145] Fix | Delete
};
[146] Fix | Delete
[147] Fix | Delete
/* SMC_GEN_LGR_SMCD attributes */
[148] Fix | Delete
enum {
[149] Fix | Delete
SMC_NLA_LGR_D_UNSPEC,
[150] Fix | Delete
SMC_NLA_LGR_D_ID, /* u32 */
[151] Fix | Delete
SMC_NLA_LGR_D_GID, /* u64 */
[152] Fix | Delete
SMC_NLA_LGR_D_PEER_GID, /* u64 */
[153] Fix | Delete
SMC_NLA_LGR_D_VLAN_ID, /* u8 */
[154] Fix | Delete
SMC_NLA_LGR_D_CONNS_NUM, /* u32 */
[155] Fix | Delete
SMC_NLA_LGR_D_PNETID, /* string */
[156] Fix | Delete
SMC_NLA_LGR_D_CHID, /* u16 */
[157] Fix | Delete
SMC_NLA_LGR_D_PAD, /* flag */
[158] Fix | Delete
SMC_NLA_LGR_D_V2_COMMON, /* nest */
[159] Fix | Delete
__SMC_NLA_LGR_D_MAX,
[160] Fix | Delete
SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1
[161] Fix | Delete
};
[162] Fix | Delete
[163] Fix | Delete
/* SMC_NLA_DEV_PORT nested attributes */
[164] Fix | Delete
enum {
[165] Fix | Delete
SMC_NLA_DEV_PORT_UNSPEC,
[166] Fix | Delete
SMC_NLA_DEV_PORT_PNET_USR, /* u8 */
[167] Fix | Delete
SMC_NLA_DEV_PORT_PNETID, /* string */
[168] Fix | Delete
SMC_NLA_DEV_PORT_NETDEV, /* u32 */
[169] Fix | Delete
SMC_NLA_DEV_PORT_STATE, /* u8 */
[170] Fix | Delete
SMC_NLA_DEV_PORT_VALID, /* u8 */
[171] Fix | Delete
SMC_NLA_DEV_PORT_LNK_CNT, /* u32 */
[172] Fix | Delete
__SMC_NLA_DEV_PORT_MAX,
[173] Fix | Delete
SMC_NLA_DEV_PORT_MAX = __SMC_NLA_DEV_PORT_MAX - 1
[174] Fix | Delete
};
[175] Fix | Delete
[176] Fix | Delete
/* SMC_GEN_DEV_SMCD and SMC_GEN_DEV_SMCR attributes */
[177] Fix | Delete
enum {
[178] Fix | Delete
SMC_NLA_DEV_UNSPEC,
[179] Fix | Delete
SMC_NLA_DEV_USE_CNT, /* u32 */
[180] Fix | Delete
SMC_NLA_DEV_IS_CRIT, /* u8 */
[181] Fix | Delete
SMC_NLA_DEV_PCI_FID, /* u32 */
[182] Fix | Delete
SMC_NLA_DEV_PCI_CHID, /* u16 */
[183] Fix | Delete
SMC_NLA_DEV_PCI_VENDOR, /* u16 */
[184] Fix | Delete
SMC_NLA_DEV_PCI_DEVICE, /* u16 */
[185] Fix | Delete
SMC_NLA_DEV_PCI_ID, /* string */
[186] Fix | Delete
SMC_NLA_DEV_PORT, /* nest */
[187] Fix | Delete
SMC_NLA_DEV_PORT2, /* nest */
[188] Fix | Delete
SMC_NLA_DEV_IB_NAME, /* string */
[189] Fix | Delete
__SMC_NLA_DEV_MAX,
[190] Fix | Delete
SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1
[191] Fix | Delete
};
[192] Fix | Delete
[193] Fix | Delete
/* SMC_NLA_STATS_T_TX(RX)_RMB_SIZE nested attributes */
[194] Fix | Delete
/* SMC_NLA_STATS_TX(RX)PLOAD_SIZE nested attributes */
[195] Fix | Delete
enum {
[196] Fix | Delete
SMC_NLA_STATS_PLOAD_PAD,
[197] Fix | Delete
SMC_NLA_STATS_PLOAD_8K, /* u64 */
[198] Fix | Delete
SMC_NLA_STATS_PLOAD_16K, /* u64 */
[199] Fix | Delete
SMC_NLA_STATS_PLOAD_32K, /* u64 */
[200] Fix | Delete
SMC_NLA_STATS_PLOAD_64K, /* u64 */
[201] Fix | Delete
SMC_NLA_STATS_PLOAD_128K, /* u64 */
[202] Fix | Delete
SMC_NLA_STATS_PLOAD_256K, /* u64 */
[203] Fix | Delete
SMC_NLA_STATS_PLOAD_512K, /* u64 */
[204] Fix | Delete
SMC_NLA_STATS_PLOAD_1024K, /* u64 */
[205] Fix | Delete
SMC_NLA_STATS_PLOAD_G_1024K, /* u64 */
[206] Fix | Delete
__SMC_NLA_STATS_PLOAD_MAX,
[207] Fix | Delete
SMC_NLA_STATS_PLOAD_MAX = __SMC_NLA_STATS_PLOAD_MAX - 1
[208] Fix | Delete
};
[209] Fix | Delete
[210] Fix | Delete
/* SMC_NLA_STATS_T_TX(RX)_RMB_STATS nested attributes */
[211] Fix | Delete
enum {
[212] Fix | Delete
SMC_NLA_STATS_RMB_PAD,
[213] Fix | Delete
SMC_NLA_STATS_RMB_SIZE_SM_PEER_CNT, /* u64 */
[214] Fix | Delete
SMC_NLA_STATS_RMB_SIZE_SM_CNT, /* u64 */
[215] Fix | Delete
SMC_NLA_STATS_RMB_FULL_PEER_CNT, /* u64 */
[216] Fix | Delete
SMC_NLA_STATS_RMB_FULL_CNT, /* u64 */
[217] Fix | Delete
SMC_NLA_STATS_RMB_REUSE_CNT, /* u64 */
[218] Fix | Delete
SMC_NLA_STATS_RMB_ALLOC_CNT, /* u64 */
[219] Fix | Delete
SMC_NLA_STATS_RMB_DGRADE_CNT, /* u64 */
[220] Fix | Delete
__SMC_NLA_STATS_RMB_MAX,
[221] Fix | Delete
SMC_NLA_STATS_RMB_MAX = __SMC_NLA_STATS_RMB_MAX - 1
[222] Fix | Delete
};
[223] Fix | Delete
[224] Fix | Delete
/* SMC_NLA_STATS_SMCD_TECH and _SMCR_TECH nested attributes */
[225] Fix | Delete
enum {
[226] Fix | Delete
SMC_NLA_STATS_T_PAD,
[227] Fix | Delete
SMC_NLA_STATS_T_TX_RMB_SIZE, /* nest */
[228] Fix | Delete
SMC_NLA_STATS_T_RX_RMB_SIZE, /* nest */
[229] Fix | Delete
SMC_NLA_STATS_T_TXPLOAD_SIZE, /* nest */
[230] Fix | Delete
SMC_NLA_STATS_T_RXPLOAD_SIZE, /* nest */
[231] Fix | Delete
SMC_NLA_STATS_T_TX_RMB_STATS, /* nest */
[232] Fix | Delete
SMC_NLA_STATS_T_RX_RMB_STATS, /* nest */
[233] Fix | Delete
SMC_NLA_STATS_T_CLNT_V1_SUCC, /* u64 */
[234] Fix | Delete
SMC_NLA_STATS_T_CLNT_V2_SUCC, /* u64 */
[235] Fix | Delete
SMC_NLA_STATS_T_SRV_V1_SUCC, /* u64 */
[236] Fix | Delete
SMC_NLA_STATS_T_SRV_V2_SUCC, /* u64 */
[237] Fix | Delete
SMC_NLA_STATS_T_SENDPAGE_CNT, /* u64 */
[238] Fix | Delete
SMC_NLA_STATS_T_SPLICE_CNT, /* u64 */
[239] Fix | Delete
SMC_NLA_STATS_T_CORK_CNT, /* u64 */
[240] Fix | Delete
SMC_NLA_STATS_T_NDLY_CNT, /* u64 */
[241] Fix | Delete
SMC_NLA_STATS_T_URG_DATA_CNT, /* u64 */
[242] Fix | Delete
SMC_NLA_STATS_T_RX_BYTES, /* u64 */
[243] Fix | Delete
SMC_NLA_STATS_T_TX_BYTES, /* u64 */
[244] Fix | Delete
SMC_NLA_STATS_T_RX_CNT, /* u64 */
[245] Fix | Delete
SMC_NLA_STATS_T_TX_CNT, /* u64 */
[246] Fix | Delete
__SMC_NLA_STATS_T_MAX,
[247] Fix | Delete
SMC_NLA_STATS_T_MAX = __SMC_NLA_STATS_T_MAX - 1
[248] Fix | Delete
};
[249] Fix | Delete
[250] Fix | Delete
/* SMC_GEN_STATS attributes */
[251] Fix | Delete
enum {
[252] Fix | Delete
SMC_NLA_STATS_PAD,
[253] Fix | Delete
SMC_NLA_STATS_SMCD_TECH, /* nest */
[254] Fix | Delete
SMC_NLA_STATS_SMCR_TECH, /* nest */
[255] Fix | Delete
SMC_NLA_STATS_CLNT_HS_ERR_CNT, /* u64 */
[256] Fix | Delete
SMC_NLA_STATS_SRV_HS_ERR_CNT, /* u64 */
[257] Fix | Delete
__SMC_NLA_STATS_MAX,
[258] Fix | Delete
SMC_NLA_STATS_MAX = __SMC_NLA_STATS_MAX - 1
[259] Fix | Delete
};
[260] Fix | Delete
[261] Fix | Delete
/* SMC_GEN_FBACK_STATS attributes */
[262] Fix | Delete
enum {
[263] Fix | Delete
SMC_NLA_FBACK_STATS_PAD,
[264] Fix | Delete
SMC_NLA_FBACK_STATS_TYPE, /* u8 */
[265] Fix | Delete
SMC_NLA_FBACK_STATS_SRV_CNT, /* u64 */
[266] Fix | Delete
SMC_NLA_FBACK_STATS_CLNT_CNT, /* u64 */
[267] Fix | Delete
SMC_NLA_FBACK_STATS_RSN_CODE, /* u32 */
[268] Fix | Delete
SMC_NLA_FBACK_STATS_RSN_CNT, /* u16 */
[269] Fix | Delete
__SMC_NLA_FBACK_STATS_MAX,
[270] Fix | Delete
SMC_NLA_FBACK_STATS_MAX = __SMC_NLA_FBACK_STATS_MAX - 1
[271] Fix | Delete
};
[272] Fix | Delete
[273] Fix | Delete
/* SMC_NETLINK_UEID attributes */
[274] Fix | Delete
enum {
[275] Fix | Delete
SMC_NLA_EID_TABLE_UNSPEC,
[276] Fix | Delete
SMC_NLA_EID_TABLE_ENTRY, /* string */
[277] Fix | Delete
__SMC_NLA_EID_TABLE_MAX,
[278] Fix | Delete
SMC_NLA_EID_TABLE_MAX = __SMC_NLA_EID_TABLE_MAX - 1
[279] Fix | Delete
};
[280] Fix | Delete
[281] Fix | Delete
/* SMC_NETLINK_SEID attributes */
[282] Fix | Delete
enum {
[283] Fix | Delete
SMC_NLA_SEID_UNSPEC,
[284] Fix | Delete
SMC_NLA_SEID_ENTRY, /* string */
[285] Fix | Delete
SMC_NLA_SEID_ENABLED, /* u8 */
[286] Fix | Delete
__SMC_NLA_SEID_TABLE_MAX,
[287] Fix | Delete
SMC_NLA_SEID_TABLE_MAX = __SMC_NLA_SEID_TABLE_MAX - 1
[288] Fix | Delete
};
[289] Fix | Delete
[290] Fix | Delete
/* SMC_NETLINK_HS_LIMITATION attributes */
[291] Fix | Delete
enum {
[292] Fix | Delete
SMC_NLA_HS_LIMITATION_UNSPEC,
[293] Fix | Delete
SMC_NLA_HS_LIMITATION_ENABLED, /* u8 */
[294] Fix | Delete
__SMC_NLA_HS_LIMITATION_MAX,
[295] Fix | Delete
SMC_NLA_HS_LIMITATION_MAX = __SMC_NLA_HS_LIMITATION_MAX - 1
[296] Fix | Delete
};
[297] Fix | Delete
[298] Fix | Delete
/* SMC socket options */
[299] Fix | Delete
#define SMC_LIMIT_HS 1 /* constraint on smc handshake */
[300] Fix | Delete
[301] Fix | Delete
#endif /* _LINUX_SMC_H */
[302] Fix | Delete
[303] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function