Server IP : 92.204.138.22 / Your IP : 18.226.96.129 Web Server : Apache System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : internationaljou ( 1019) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Shared Memory Communications over RDMA (SMC-R) and RoCE * * Definitions for generic netlink based configuration of an SMC-R PNET table * * Copyright IBM Corp. 2016 * * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com> */ #ifndef _LINUX_SMC_H_ #define _LINUX_SMC_H_ /* Netlink SMC_PNETID attributes */ enum { SMC_PNETID_UNSPEC, SMC_PNETID_NAME, SMC_PNETID_ETHNAME, SMC_PNETID_IBNAME, SMC_PNETID_IBPORT, __SMC_PNETID_MAX, SMC_PNETID_MAX = __SMC_PNETID_MAX - 1 }; enum { /* SMC PNET Table commands */ SMC_PNETID_GET = 1, SMC_PNETID_ADD, SMC_PNETID_DEL, SMC_PNETID_FLUSH }; #define SMCR_GENL_FAMILY_NAME "SMC_PNETID" #define SMCR_GENL_FAMILY_VERSION 1 /* gennetlink interface to access non-socket information from SMC module */ #define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK" #define SMC_GENL_FAMILY_VERSION 1 #define SMC_PCI_ID_STR_LEN 16 /* Max length of pci id string */ #define SMC_MAX_HOSTNAME_LEN 32 /* Max length of the hostname */ #define SMC_MAX_UEID 4 /* Max number of user EIDs */ #define SMC_MAX_EID_LEN 32 /* Max length of an EID */ /* SMC_GENL_FAMILY commands */ enum { SMC_NETLINK_GET_SYS_INFO = 1, SMC_NETLINK_GET_LGR_SMCR, SMC_NETLINK_GET_LINK_SMCR, SMC_NETLINK_GET_LGR_SMCD, SMC_NETLINK_GET_DEV_SMCD, SMC_NETLINK_GET_DEV_SMCR, SMC_NETLINK_GET_STATS, SMC_NETLINK_GET_FBACK_STATS, SMC_NETLINK_DUMP_UEID, SMC_NETLINK_ADD_UEID, SMC_NETLINK_REMOVE_UEID, SMC_NETLINK_FLUSH_UEID, SMC_NETLINK_DUMP_SEID, SMC_NETLINK_ENABLE_SEID, SMC_NETLINK_DISABLE_SEID, SMC_NETLINK_DUMP_HS_LIMITATION, SMC_NETLINK_ENABLE_HS_LIMITATION, SMC_NETLINK_DISABLE_HS_LIMITATION, }; /* SMC_GENL_FAMILY top level attributes */ enum { SMC_GEN_UNSPEC, SMC_GEN_SYS_INFO, /* nest */ SMC_GEN_LGR_SMCR, /* nest */ SMC_GEN_LINK_SMCR, /* nest */ SMC_GEN_LGR_SMCD, /* nest */ SMC_GEN_DEV_SMCD, /* nest */ SMC_GEN_DEV_SMCR, /* nest */ SMC_GEN_STATS, /* nest */ SMC_GEN_FBACK_STATS, /* nest */ __SMC_GEN_MAX, SMC_GEN_MAX = __SMC_GEN_MAX - 1 }; /* SMC_GEN_SYS_INFO attributes */ enum { SMC_NLA_SYS_UNSPEC, SMC_NLA_SYS_VER, /* u8 */ SMC_NLA_SYS_REL, /* u8 */ SMC_NLA_SYS_IS_ISM_V2, /* u8 */ SMC_NLA_SYS_LOCAL_HOST, /* string */ SMC_NLA_SYS_SEID, /* string */ SMC_NLA_SYS_IS_SMCR_V2, /* u8 */ __SMC_NLA_SYS_MAX, SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1 }; /* SMC_NLA_LGR_D_V2_COMMON and SMC_NLA_LGR_R_V2_COMMON nested attributes */ enum { SMC_NLA_LGR_V2_VER, /* u8 */ SMC_NLA_LGR_V2_REL, /* u8 */ SMC_NLA_LGR_V2_OS, /* u8 */ SMC_NLA_LGR_V2_NEG_EID, /* string */ SMC_NLA_LGR_V2_PEER_HOST, /* string */ __SMC_NLA_LGR_V2_MAX, SMC_NLA_LGR_V2_MAX = __SMC_NLA_LGR_V2_MAX - 1 }; /* SMC_NLA_LGR_R_V2 nested attributes */ enum { SMC_NLA_LGR_R_V2_UNSPEC, SMC_NLA_LGR_R_V2_DIRECT, /* u8 */ __SMC_NLA_LGR_R_V2_MAX, SMC_NLA_LGR_R_V2_MAX = __SMC_NLA_LGR_R_V2_MAX - 1 }; /* SMC_GEN_LGR_SMCR attributes */ enum { SMC_NLA_LGR_R_UNSPEC, SMC_NLA_LGR_R_ID, /* u32 */ SMC_NLA_LGR_R_ROLE, /* u8 */ SMC_NLA_LGR_R_TYPE, /* u8 */ SMC_NLA_LGR_R_PNETID, /* string */ SMC_NLA_LGR_R_VLAN_ID, /* u8 */ SMC_NLA_LGR_R_CONNS_NUM, /* u32 */ SMC_NLA_LGR_R_V2_COMMON, /* nest */ SMC_NLA_LGR_R_V2, /* nest */ SMC_NLA_LGR_R_NET_COOKIE, /* u64 */ SMC_NLA_LGR_R_PAD, /* flag */ SMC_NLA_LGR_R_BUF_TYPE, /* u8 */ __SMC_NLA_LGR_R_MAX, SMC_NLA_LGR_R_MAX = __SMC_NLA_LGR_R_MAX - 1 }; /* SMC_GEN_LINK_SMCR attributes */ enum { SMC_NLA_LINK_UNSPEC, SMC_NLA_LINK_ID, /* u8 */ SMC_NLA_LINK_IB_DEV, /* string */ SMC_NLA_LINK_IB_PORT, /* u8 */ SMC_NLA_LINK_GID, /* string */ SMC_NLA_LINK_PEER_GID, /* string */ SMC_NLA_LINK_CONN_CNT, /* u32 */ SMC_NLA_LINK_NET_DEV, /* u32 */ SMC_NLA_LINK_UID, /* u32 */ SMC_NLA_LINK_PEER_UID, /* u32 */ SMC_NLA_LINK_STATE, /* u32 */ __SMC_NLA_LINK_MAX, SMC_NLA_LINK_MAX = __SMC_NLA_LINK_MAX - 1 }; /* SMC_GEN_LGR_SMCD attributes */ enum { SMC_NLA_LGR_D_UNSPEC, SMC_NLA_LGR_D_ID, /* u32 */ SMC_NLA_LGR_D_GID, /* u64 */ SMC_NLA_LGR_D_PEER_GID, /* u64 */ SMC_NLA_LGR_D_VLAN_ID, /* u8 */ SMC_NLA_LGR_D_CONNS_NUM, /* u32 */ SMC_NLA_LGR_D_PNETID, /* string */ SMC_NLA_LGR_D_CHID, /* u16 */ SMC_NLA_LGR_D_PAD, /* flag */ SMC_NLA_LGR_D_V2_COMMON, /* nest */ __SMC_NLA_LGR_D_MAX, SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1 }; /* SMC_NLA_DEV_PORT nested attributes */ enum { SMC_NLA_DEV_PORT_UNSPEC, SMC_NLA_DEV_PORT_PNET_USR, /* u8 */ SMC_NLA_DEV_PORT_PNETID, /* string */ SMC_NLA_DEV_PORT_NETDEV, /* u32 */ SMC_NLA_DEV_PORT_STATE, /* u8 */ SMC_NLA_DEV_PORT_VALID, /* u8 */ SMC_NLA_DEV_PORT_LNK_CNT, /* u32 */ __SMC_NLA_DEV_PORT_MAX, SMC_NLA_DEV_PORT_MAX = __SMC_NLA_DEV_PORT_MAX - 1 }; /* SMC_GEN_DEV_SMCD and SMC_GEN_DEV_SMCR attributes */ enum { SMC_NLA_DEV_UNSPEC, SMC_NLA_DEV_USE_CNT, /* u32 */ SMC_NLA_DEV_IS_CRIT, /* u8 */ SMC_NLA_DEV_PCI_FID, /* u32 */ SMC_NLA_DEV_PCI_CHID, /* u16 */ SMC_NLA_DEV_PCI_VENDOR, /* u16 */ SMC_NLA_DEV_PCI_DEVICE, /* u16 */ SMC_NLA_DEV_PCI_ID, /* string */ SMC_NLA_DEV_PORT, /* nest */ SMC_NLA_DEV_PORT2, /* nest */ SMC_NLA_DEV_IB_NAME, /* string */ __SMC_NLA_DEV_MAX, SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1 }; /* SMC_NLA_STATS_T_TX(RX)_RMB_SIZE nested attributes */ /* SMC_NLA_STATS_TX(RX)PLOAD_SIZE nested attributes */ enum { SMC_NLA_STATS_PLOAD_PAD, SMC_NLA_STATS_PLOAD_8K, /* u64 */ SMC_NLA_STATS_PLOAD_16K, /* u64 */ SMC_NLA_STATS_PLOAD_32K, /* u64 */ SMC_NLA_STATS_PLOAD_64K, /* u64 */ SMC_NLA_STATS_PLOAD_128K, /* u64 */ SMC_NLA_STATS_PLOAD_256K, /* u64 */ SMC_NLA_STATS_PLOAD_512K, /* u64 */ SMC_NLA_STATS_PLOAD_1024K, /* u64 */ SMC_NLA_STATS_PLOAD_G_1024K, /* u64 */ __SMC_NLA_STATS_PLOAD_MAX, SMC_NLA_STATS_PLOAD_MAX = __SMC_NLA_STATS_PLOAD_MAX - 1 }; /* SMC_NLA_STATS_T_TX(RX)_RMB_STATS nested attributes */ enum { SMC_NLA_STATS_RMB_PAD, SMC_NLA_STATS_RMB_SIZE_SM_PEER_CNT, /* u64 */ SMC_NLA_STATS_RMB_SIZE_SM_CNT, /* u64 */ SMC_NLA_STATS_RMB_FULL_PEER_CNT, /* u64 */ SMC_NLA_STATS_RMB_FULL_CNT, /* u64 */ SMC_NLA_STATS_RMB_REUSE_CNT, /* u64 */ SMC_NLA_STATS_RMB_ALLOC_CNT, /* u64 */ SMC_NLA_STATS_RMB_DGRADE_CNT, /* u64 */ __SMC_NLA_STATS_RMB_MAX, SMC_NLA_STATS_RMB_MAX = __SMC_NLA_STATS_RMB_MAX - 1 }; /* SMC_NLA_STATS_SMCD_TECH and _SMCR_TECH nested attributes */ enum { SMC_NLA_STATS_T_PAD, SMC_NLA_STATS_T_TX_RMB_SIZE, /* nest */ SMC_NLA_STATS_T_RX_RMB_SIZE, /* nest */ SMC_NLA_STATS_T_TXPLOAD_SIZE, /* nest */ SMC_NLA_STATS_T_RXPLOAD_SIZE, /* nest */ SMC_NLA_STATS_T_TX_RMB_STATS, /* nest */ SMC_NLA_STATS_T_RX_RMB_STATS, /* nest */ SMC_NLA_STATS_T_CLNT_V1_SUCC, /* u64 */ SMC_NLA_STATS_T_CLNT_V2_SUCC, /* u64 */ SMC_NLA_STATS_T_SRV_V1_SUCC, /* u64 */ SMC_NLA_STATS_T_SRV_V2_SUCC, /* u64 */ SMC_NLA_STATS_T_SENDPAGE_CNT, /* u64 */ SMC_NLA_STATS_T_SPLICE_CNT, /* u64 */ SMC_NLA_STATS_T_CORK_CNT, /* u64 */ SMC_NLA_STATS_T_NDLY_CNT, /* u64 */ SMC_NLA_STATS_T_URG_DATA_CNT, /* u64 */ SMC_NLA_STATS_T_RX_BYTES, /* u64 */ SMC_NLA_STATS_T_TX_BYTES, /* u64 */ SMC_NLA_STATS_T_RX_CNT, /* u64 */ SMC_NLA_STATS_T_TX_CNT, /* u64 */ __SMC_NLA_STATS_T_MAX, SMC_NLA_STATS_T_MAX = __SMC_NLA_STATS_T_MAX - 1 }; /* SMC_GEN_STATS attributes */ enum { SMC_NLA_STATS_PAD, SMC_NLA_STATS_SMCD_TECH, /* nest */ SMC_NLA_STATS_SMCR_TECH, /* nest */ SMC_NLA_STATS_CLNT_HS_ERR_CNT, /* u64 */ SMC_NLA_STATS_SRV_HS_ERR_CNT, /* u64 */ __SMC_NLA_STATS_MAX, SMC_NLA_STATS_MAX = __SMC_NLA_STATS_MAX - 1 }; /* SMC_GEN_FBACK_STATS attributes */ enum { SMC_NLA_FBACK_STATS_PAD, SMC_NLA_FBACK_STATS_TYPE, /* u8 */ SMC_NLA_FBACK_STATS_SRV_CNT, /* u64 */ SMC_NLA_FBACK_STATS_CLNT_CNT, /* u64 */ SMC_NLA_FBACK_STATS_RSN_CODE, /* u32 */ SMC_NLA_FBACK_STATS_RSN_CNT, /* u16 */ __SMC_NLA_FBACK_STATS_MAX, SMC_NLA_FBACK_STATS_MAX = __SMC_NLA_FBACK_STATS_MAX - 1 }; /* SMC_NETLINK_UEID attributes */ enum { SMC_NLA_EID_TABLE_UNSPEC, SMC_NLA_EID_TABLE_ENTRY, /* string */ __SMC_NLA_EID_TABLE_MAX, SMC_NLA_EID_TABLE_MAX = __SMC_NLA_EID_TABLE_MAX - 1 }; /* SMC_NETLINK_SEID attributes */ enum { SMC_NLA_SEID_UNSPEC, SMC_NLA_SEID_ENTRY, /* string */ SMC_NLA_SEID_ENABLED, /* u8 */ __SMC_NLA_SEID_TABLE_MAX, SMC_NLA_SEID_TABLE_MAX = __SMC_NLA_SEID_TABLE_MAX - 1 }; /* SMC_NETLINK_HS_LIMITATION attributes */ enum { SMC_NLA_HS_LIMITATION_UNSPEC, SMC_NLA_HS_LIMITATION_ENABLED, /* u8 */ __SMC_NLA_HS_LIMITATION_MAX, SMC_NLA_HS_LIMITATION_MAX = __SMC_NLA_HS_LIMITATION_MAX - 1 }; /* SMC socket options */ #define SMC_LIMIT_HS 1 /* constraint on smc handshake */ #endif /* _LINUX_SMC_H */