History

net/smc: provide fallback reason code

Remember the fallback reason code and the peer diagnosis code for smc sockets, and provide them in smc_diag.c to the netlink interface. And add more detailed reason codes.

Karsten Graul committed 8 years ago

Commit 603cc141 parent 7005ada6 files · +61 −29Browse files

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

Unified · Split

include/uapi/linux/smc_diag.h+6−0
@@ -43,6 +43,7 @@ enum { · 42 unmodified lines
43 SMC_DIAG_LGRINFO,43 SMC_DIAG_LGRINFO,
44 SMC_DIAG_SHUTDOWN,44 SMC_DIAG_SHUTDOWN,
45 SMC_DIAG_DMBINFO,45 SMC_DIAG_DMBINFO,
46 SMC_DIAG_FALLBACK,
46 __SMC_DIAG_MAX,47 __SMC_DIAG_MAX,
47};48};
48 49
@@ -92,6 +93,11 @@ struct smc_diag_lgrinfo { · 43 unmodified lines
92 __u8 role;93 __u8 role;
93};94};
94 95
96struct smc_diag_fallback {
97 __u32 reason;
98 __u32 peer_diagnosis;
99};
100
95struct smcd_diag_dmbinfo { /* SMC-D Socket internals */101struct smcd_diag_dmbinfo { /* SMC-D Socket internals */
96 __u32 linkid; /* Link identifier */102 __u32 linkid; /* Link identifier */
97 __u64 peer_gid; /* Peer GID */103 __u64 peer_gid; /* Peer GID */