History

net/smc: Add support for obtaining system information

Add new netlink command to obtain system information of the smc module.

Guvenc Gulce committed 5 years ago

Commit 099b9901 parent e8372d97 files · +100 −0Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/smc.h+18−0
@@ -37,11 +37,29 @@ enum { /* SMC PNET Table commands */ · 36 unmodified lines
37#define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK"37#define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK"
38#define SMC_GENL_FAMILY_VERSION 138#define SMC_GENL_FAMILY_VERSION 1
39 39
40/* SMC_GENL_FAMILY commands */
41enum {
42 SMC_NETLINK_GET_SYS_INFO = 1,
43};
44
40/* SMC_GENL_FAMILY top level attributes */45/* SMC_GENL_FAMILY top level attributes */
41enum {46enum {
42 SMC_GEN_UNSPEC,47 SMC_GEN_UNSPEC,
48 SMC_GEN_SYS_INFO, /* nest */
43 __SMC_GEN_MAX,49 __SMC_GEN_MAX,
44 SMC_GEN_MAX = __SMC_GEN_MAX - 150 SMC_GEN_MAX = __SMC_GEN_MAX - 1
45};51};
46 52
53/* SMC_GEN_SYS_INFO attributes */
54enum {
55 SMC_NLA_SYS_UNSPEC,
56 SMC_NLA_SYS_VER, /* u8 */
57 SMC_NLA_SYS_REL, /* u8 */
58 SMC_NLA_SYS_IS_ISM_V2, /* u8 */
59 SMC_NLA_SYS_LOCAL_HOST, /* string */
60 SMC_NLA_SYS_SEID, /* string */
61 __SMC_NLA_SYS_MAX,
62 SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1
63};
64
47#endif /* _UAPI_LINUX_SMC_H */65#endif /* _UAPI_LINUX_SMC_H */