This patch adds diag support for SMC-D.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -35,6 +35,7 @@ enum { · 34 unmodified lines | |||
| 35 | SMC_DIAG_CONNINFO, | 35 | SMC_DIAG_CONNINFO, |
| 36 | SMC_DIAG_LGRINFO, | 36 | SMC_DIAG_LGRINFO, |
| 37 | SMC_DIAG_SHUTDOWN, | 37 | SMC_DIAG_SHUTDOWN, |
| 38 | SMC_DIAG_DMBINFO, | ||
| 38 | __SMC_DIAG_MAX, | 39 | __SMC_DIAG_MAX, |
| 39 | }; | 40 | }; |
| 40 | 41 | ||
| @@ -83,4 +84,13 @@ struct smc_diag_lgrinfo { · 42 unmodified lines | |||
| 83 | struct smc_diag_linkinfo lnk[1]; | 84 | struct smc_diag_linkinfo lnk[1]; |
| 84 | __u8 role; | 85 | __u8 role; |
| 85 | }; | 86 | }; |
| 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 | |||
| 86 | #endif /* _UAPI_SMC_DIAG_H_ */ | 96 | #endif /* _UAPI_SMC_DIAG_H_ */ |