History

net/smc: Introduce SMCR get linkgroup command

Introduce get linkgroup command which loops through all available SMCR linkgroups. It uses the SMC-R linkgroup list as entry point, not the socket list, which makes linkgroup diagnosis possible, in case linkgroup does not contain active connections anymore.

Guvenc Gulce committed 5 years ago

Commit e9b8c841 parent 099b9904 files · +106 −0Browse files

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

Unified · Split

include/uapi/linux/smc.h+15−0
@@ -40,12 +40,14 @@ enum { /* SMC PNET Table commands */ · 39 unmodified lines
4040 /* SMC_GENL_FAMILY commands */
4141 enum {
4242 SMC_NETLINK_GET_SYS_INFO = 1,
43+ SMC_NETLINK_GET_LGR_SMCR,
4344 };
4445
4546 /* SMC_GENL_FAMILY top level attributes */
4647 enum {
4748 SMC_GEN_UNSPEC,
4849 SMC_GEN_SYS_INFO, /* nest */
50+ SMC_GEN_LGR_SMCR, /* nest */
4951 __SMC_GEN_MAX,
5052 SMC_GEN_MAX = __SMC_GEN_MAX - 1
5153 };
@@ -62,4 +64,17 @@ enum { · 10 unmodified lines
6264 SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1
6365 };
6466
67+/* SMC_GEN_LGR_SMCR attributes */
68+enum {
69+ SMC_NLA_LGR_R_UNSPEC,
70+ SMC_NLA_LGR_R_ID, /* u32 */
71+ SMC_NLA_LGR_R_ROLE, /* u8 */
72+ SMC_NLA_LGR_R_TYPE, /* u8 */
73+ SMC_NLA_LGR_R_PNETID, /* string */
74+ SMC_NLA_LGR_R_VLAN_ID, /* u8 */
75+ SMC_NLA_LGR_R_CONNS_NUM, /* u32 */
76+ __SMC_NLA_LGR_R_MAX,
77+ SMC_NLA_LGR_R_MAX = __SMC_NLA_LGR_R_MAX - 1
78+};
79+
6580 #endif /* _UAPI_LINUX_SMC_H */