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.
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -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 | ||
| 96 | struct smc_diag_fallback { | ||
| 97 | __u32 reason; | ||
| 98 | __u32 peer_diagnosis; | ||
| 99 | }; | ||
| 100 | |||
| 95 | struct smcd_diag_dmbinfo { /* SMC-D Socket internals */ | 101 | struct 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 */ |