mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net/smc: Introduce SMCR get link command
Introduce get link command which loops through all available links of all available link groups. 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. Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e9b8c845cb
commit
5a7e09d58f
5 changed files with 124 additions and 17 deletions
|
@ -41,6 +41,7 @@ enum { /* SMC PNET Table commands */
|
|||
enum {
|
||||
SMC_NETLINK_GET_SYS_INFO = 1,
|
||||
SMC_NETLINK_GET_LGR_SMCR,
|
||||
SMC_NETLINK_GET_LINK_SMCR,
|
||||
};
|
||||
|
||||
/* SMC_GENL_FAMILY top level attributes */
|
||||
|
@ -48,6 +49,7 @@ enum {
|
|||
SMC_GEN_UNSPEC,
|
||||
SMC_GEN_SYS_INFO, /* nest */
|
||||
SMC_GEN_LGR_SMCR, /* nest */
|
||||
SMC_GEN_LINK_SMCR, /* nest */
|
||||
__SMC_GEN_MAX,
|
||||
SMC_GEN_MAX = __SMC_GEN_MAX - 1
|
||||
};
|
||||
|
@ -77,4 +79,20 @@ enum {
|
|||
SMC_NLA_LGR_R_MAX = __SMC_NLA_LGR_R_MAX - 1
|
||||
};
|
||||
|
||||
/* SMC_GEN_LINK_SMCR attributes */
|
||||
enum {
|
||||
SMC_NLA_LINK_UNSPEC,
|
||||
SMC_NLA_LINK_ID, /* u8 */
|
||||
SMC_NLA_LINK_IB_DEV, /* string */
|
||||
SMC_NLA_LINK_IB_PORT, /* u8 */
|
||||
SMC_NLA_LINK_GID, /* string */
|
||||
SMC_NLA_LINK_PEER_GID, /* string */
|
||||
SMC_NLA_LINK_CONN_CNT, /* u32 */
|
||||
SMC_NLA_LINK_NET_DEV, /* u32 */
|
||||
SMC_NLA_LINK_UID, /* u32 */
|
||||
SMC_NLA_LINK_PEER_UID, /* u32 */
|
||||
SMC_NLA_LINK_STATE, /* u32 */
|
||||
__SMC_NLA_LINK_MAX,
|
||||
SMC_NLA_LINK_MAX = __SMC_NLA_LINK_MAX - 1
|
||||
};
|
||||
#endif /* _UAPI_LINUX_SMC_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue