Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 19 | #ifndef _UAPI_LINUX_SMC_H_ |
| 20 | #define _UAPI_LINUX_SMC_H_ |
| 21 | enum { |
| 22 | SMC_PNETID_UNSPEC, |
| 23 | SMC_PNETID_NAME, |
| 24 | SMC_PNETID_ETHNAME, |
| 25 | SMC_PNETID_IBNAME, |
| 26 | SMC_PNETID_IBPORT, |
| 27 | __SMC_PNETID_MAX, |
| 28 | SMC_PNETID_MAX = __SMC_PNETID_MAX - 1 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 29 | }; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 30 | enum { |
| 31 | SMC_PNETID_GET = 1, |
| 32 | SMC_PNETID_ADD, |
| 33 | SMC_PNETID_DEL, |
| 34 | SMC_PNETID_FLUSH |
| 35 | }; |
| 36 | #define SMCR_GENL_FAMILY_NAME "SMC_PNETID" |
| 37 | #define SMCR_GENL_FAMILY_VERSION 1 |
Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame^] | 38 | #define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK" |
| 39 | #define SMC_GENL_FAMILY_VERSION 1 |
| 40 | #define SMC_PCI_ID_STR_LEN 16 |
| 41 | enum { |
| 42 | SMC_NETLINK_GET_SYS_INFO = 1, |
| 43 | SMC_NETLINK_GET_LGR_SMCR, |
| 44 | SMC_NETLINK_GET_LINK_SMCR, |
| 45 | SMC_NETLINK_GET_LGR_SMCD, |
| 46 | SMC_NETLINK_GET_DEV_SMCD, |
| 47 | SMC_NETLINK_GET_DEV_SMCR, |
| 48 | }; |
| 49 | enum { |
| 50 | SMC_GEN_UNSPEC, |
| 51 | SMC_GEN_SYS_INFO, |
| 52 | SMC_GEN_LGR_SMCR, |
| 53 | SMC_GEN_LINK_SMCR, |
| 54 | SMC_GEN_LGR_SMCD, |
| 55 | SMC_GEN_DEV_SMCD, |
| 56 | SMC_GEN_DEV_SMCR, |
| 57 | __SMC_GEN_MAX, |
| 58 | SMC_GEN_MAX = __SMC_GEN_MAX - 1 |
| 59 | }; |
| 60 | enum { |
| 61 | SMC_NLA_SYS_UNSPEC, |
| 62 | SMC_NLA_SYS_VER, |
| 63 | SMC_NLA_SYS_REL, |
| 64 | SMC_NLA_SYS_IS_ISM_V2, |
| 65 | SMC_NLA_SYS_LOCAL_HOST, |
| 66 | SMC_NLA_SYS_SEID, |
| 67 | __SMC_NLA_SYS_MAX, |
| 68 | SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1 |
| 69 | }; |
| 70 | enum { |
| 71 | SMC_NLA_LGR_V2_VER, |
| 72 | SMC_NLA_LGR_V2_REL, |
| 73 | SMC_NLA_LGR_V2_OS, |
| 74 | SMC_NLA_LGR_V2_NEG_EID, |
| 75 | SMC_NLA_LGR_V2_PEER_HOST, |
| 76 | }; |
| 77 | enum { |
| 78 | SMC_NLA_LGR_R_UNSPEC, |
| 79 | SMC_NLA_LGR_R_ID, |
| 80 | SMC_NLA_LGR_R_ROLE, |
| 81 | SMC_NLA_LGR_R_TYPE, |
| 82 | SMC_NLA_LGR_R_PNETID, |
| 83 | SMC_NLA_LGR_R_VLAN_ID, |
| 84 | SMC_NLA_LGR_R_CONNS_NUM, |
| 85 | __SMC_NLA_LGR_R_MAX, |
| 86 | SMC_NLA_LGR_R_MAX = __SMC_NLA_LGR_R_MAX - 1 |
| 87 | }; |
| 88 | enum { |
| 89 | SMC_NLA_LINK_UNSPEC, |
| 90 | SMC_NLA_LINK_ID, |
| 91 | SMC_NLA_LINK_IB_DEV, |
| 92 | SMC_NLA_LINK_IB_PORT, |
| 93 | SMC_NLA_LINK_GID, |
| 94 | SMC_NLA_LINK_PEER_GID, |
| 95 | SMC_NLA_LINK_CONN_CNT, |
| 96 | SMC_NLA_LINK_NET_DEV, |
| 97 | SMC_NLA_LINK_UID, |
| 98 | SMC_NLA_LINK_PEER_UID, |
| 99 | SMC_NLA_LINK_STATE, |
| 100 | __SMC_NLA_LINK_MAX, |
| 101 | SMC_NLA_LINK_MAX = __SMC_NLA_LINK_MAX - 1 |
| 102 | }; |
| 103 | enum { |
| 104 | SMC_NLA_LGR_D_UNSPEC, |
| 105 | SMC_NLA_LGR_D_ID, |
| 106 | SMC_NLA_LGR_D_GID, |
| 107 | SMC_NLA_LGR_D_PEER_GID, |
| 108 | SMC_NLA_LGR_D_VLAN_ID, |
| 109 | SMC_NLA_LGR_D_CONNS_NUM, |
| 110 | SMC_NLA_LGR_D_PNETID, |
| 111 | SMC_NLA_LGR_D_CHID, |
| 112 | SMC_NLA_LGR_D_PAD, |
| 113 | SMC_NLA_LGR_V2, |
| 114 | __SMC_NLA_LGR_D_MAX, |
| 115 | SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1 |
| 116 | }; |
| 117 | enum { |
| 118 | SMC_NLA_DEV_PORT_UNSPEC, |
| 119 | SMC_NLA_DEV_PORT_PNET_USR, |
| 120 | SMC_NLA_DEV_PORT_PNETID, |
| 121 | SMC_NLA_DEV_PORT_NETDEV, |
| 122 | SMC_NLA_DEV_PORT_STATE, |
| 123 | SMC_NLA_DEV_PORT_VALID, |
| 124 | SMC_NLA_DEV_PORT_LNK_CNT, |
| 125 | __SMC_NLA_DEV_PORT_MAX, |
| 126 | SMC_NLA_DEV_PORT_MAX = __SMC_NLA_DEV_PORT_MAX - 1 |
| 127 | }; |
| 128 | enum { |
| 129 | SMC_NLA_DEV_UNSPEC, |
| 130 | SMC_NLA_DEV_USE_CNT, |
| 131 | SMC_NLA_DEV_IS_CRIT, |
| 132 | SMC_NLA_DEV_PCI_FID, |
| 133 | SMC_NLA_DEV_PCI_CHID, |
| 134 | SMC_NLA_DEV_PCI_VENDOR, |
| 135 | SMC_NLA_DEV_PCI_DEVICE, |
| 136 | SMC_NLA_DEV_PCI_ID, |
| 137 | SMC_NLA_DEV_PORT, |
| 138 | SMC_NLA_DEV_PORT2, |
| 139 | SMC_NLA_DEV_IB_NAME, |
| 140 | __SMC_NLA_DEV_MAX, |
| 141 | SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1 |
| 142 | }; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 143 | #endif |