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
3737 #define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK"
3838 #define SMC_GENL_FAMILY_VERSION 1
3939
40+/* SMC_GENL_FAMILY commands */
41+enum {
42+ SMC_NETLINK_GET_SYS_INFO = 1,
43+};
44+
4045 /* SMC_GENL_FAMILY top level attributes */
4146 enum {
4247 SMC_GEN_UNSPEC,
48+ SMC_GEN_SYS_INFO, /* nest */
4349 __SMC_GEN_MAX,
4450 SMC_GEN_MAX = __SMC_GEN_MAX - 1
4551 };
4652
53+/* SMC_GEN_SYS_INFO attributes */
54+enum {
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+
4765 #endif /* _UAPI_LINUX_SMC_H */