History

net/smc: add SMC-D diag support

This patch adds diag support for SMC-D.

Hans Wippel committed 8 years ago

Commit 4b1b7d31 parent 41349842 files · +25 −0Browse files

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

Unified · Split

include/uapi/linux/smc_diag.h+10−0
@@ -35,6 +35,7 @@ enum { · 34 unmodified lines
3535 SMC_DIAG_CONNINFO,
3636 SMC_DIAG_LGRINFO,
3737 SMC_DIAG_SHUTDOWN,
38+ SMC_DIAG_DMBINFO,
3839 __SMC_DIAG_MAX,
3940 };
4041
@@ -83,4 +84,13 @@ struct smc_diag_lgrinfo { · 42 unmodified lines
8384 struct smc_diag_linkinfo lnk[1];
8485 __u8 role;
8586 };
87+
88+struct smcd_diag_dmbinfo { /* SMC-D Socket internals */
89+ __u32 linkid; /* Link identifier */
90+ __u64 peer_gid; /* Peer GID */
91+ __u64 my_gid; /* My GID */
92+ __u64 token; /* Token of DMB */
93+ __u64 peer_token; /* Token of remote DMBE */
94+};
95+
8696 #endif /* _UAPI_SMC_DIAG_H_ */