summaryrefslogtreecommitdiff
path: root/include/uapi/linux/smc_diag.h
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2018-07-23 14:53:08 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-23 20:57:14 +0300
commitc601171d7a60b5b09d7c2fe0579953323a80744e (patch)
treedadabea8b7e70339d5b2a2a9eb60b9802deedafe /include/uapi/linux/smc_diag.h
parent9a2ad3623868752e4f4d0a04a4dc43d5fcde07ce (diff)
downloadlinux-c601171d7a60b5b09d7c2fe0579953323a80744e.tar.xz
net/smc: provide smc mode in smc_diag.c
Rename field diag_fallback into diag_mode and set the smc mode of a connection explicitly. 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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/linux/smc_diag.h b/include/uapi/linux/smc_diag.h
index 92be255e534c..48ae3ee22b2d 100644
--- a/include/uapi/linux/smc_diag.h
+++ b/include/uapi/linux/smc_diag.h
@@ -20,7 +20,7 @@ struct smc_diag_req {
struct smc_diag_msg {
__u8 diag_family;
__u8 diag_state;
- __u8 diag_fallback;
+ __u8 diag_mode;
__u8 diag_shutdown;
struct inet_diag_sockid id;
@@ -28,6 +28,13 @@ struct smc_diag_msg {
__u64 diag_inode;
};
+/* Mode of a connection */
+enum {
+ SMC_DIAG_MODE_SMCR,
+ SMC_DIAG_MODE_FALLBACK_TCP,
+ SMC_DIAG_MODE_SMCD,
+};
+
/* Extensions */
enum {