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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -40,12 +40,14 @@ enum { /* SMC PNET Table commands */ · 39 unmodified lines | |||
| 40 | /* SMC_GENL_FAMILY commands */ | 40 | /* SMC_GENL_FAMILY commands */ |
| 41 | enum { | 41 | enum { |
| 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 */ |
| 46 | enum { | 47 | enum { |
| 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 - 1 | 52 | 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 - 1 | 64 | SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1 |
| 63 | }; | 65 | }; |
| 64 | 66 | ||
| 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 | |||
| 65 | #endif /* _UAPI_LINUX_SMC_H */ | 80 | #endif /* _UAPI_LINUX_SMC_H */ |