diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2018-07-25 17:35:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-26 08:25:53 +0300 |
commit | 603cc1498455cf57f5ca4483b600efb37ea2c56c (patch) | |
tree | ba933ac7ee9002bc65e53e6bfc868c363c63676a /include/uapi/linux/smc_diag.h | |
parent | 7005ada68d1774d7c1109deaba0c2cd8e46f5091 (diff) | |
download | linux-603cc1498455cf57f5ca4483b600efb37ea2c56c.tar.xz |
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.
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/smc_diag.h')
-rw-r--r-- | include/uapi/linux/smc_diag.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/smc_diag.h b/include/uapi/linux/smc_diag.h index 48ae3ee22b2d..ac9e8c96d9bd 100644 --- a/include/uapi/linux/smc_diag.h +++ b/include/uapi/linux/smc_diag.h @@ -43,6 +43,7 @@ enum { SMC_DIAG_LGRINFO, SMC_DIAG_SHUTDOWN, SMC_DIAG_DMBINFO, + SMC_DIAG_FALLBACK, __SMC_DIAG_MAX, }; @@ -92,6 +93,11 @@ struct smc_diag_lgrinfo { __u8 role; }; +struct smc_diag_fallback { + __u32 reason; + __u32 peer_diagnosis; +}; + struct smcd_diag_dmbinfo { /* SMC-D Socket internals */ __u32 linkid; /* Link identifier */ __u64 peer_gid; /* Peer GID */ |