~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/smc.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/smc.h (Version linux-6.12-rc7) and /include/uapi/linux/smc.h (Version linux-5.8.18)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php