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
40/* SMC_GENL_FAMILY commands */40/* SMC_GENL_FAMILY commands */
41enum {41enum {
42 SMC_NETLINK_GET_SYS_INFO = 1,42 SMC_NETLINK_GET_SYS_INFO = 1,
43 SMC_NETLINK_GET_LGR_SMCR,
43};44};
44 45
45/* SMC_GENL_FAMILY top level attributes */46/* SMC_GENL_FAMILY top level attributes */
46enum {47enum {
47 SMC_GEN_UNSPEC,48 SMC_GEN_UNSPEC,
48 SMC_GEN_SYS_INFO, /* nest */49 SMC_GEN_SYS_INFO, /* nest */
50 SMC_GEN_LGR_SMCR, /* nest */
49 __SMC_GEN_MAX,51 __SMC_GEN_MAX,
50 SMC_GEN_MAX = __SMC_GEN_MAX - 152 SMC_GEN_MAX = __SMC_GEN_MAX - 1
51};53};
@@ -62,4 +64,17 @@ enum { · 10 unmodified lines
62 SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 164 SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1
63};65};
64 66
67/* SMC_GEN_LGR_SMCR attributes */
68enum {
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
65#endif /* _UAPI_LINUX_SMC_H */80#endif /* _UAPI_LINUX_SMC_H */