summaryrefslogtreecommitdiff
path: root/include/uapi/linux/smc.h
diff options
context:
space:
mode:
authorD. Wythe <alibuda@linux.alibaba.com>2022-02-10 17:11:37 +0800
committerDavid S. Miller <davem@davemloft.net>2022-02-11 11:14:58 +0000
commita6a6fe27bab48f0d09a64b051e7bde432fcae081 (patch)
treec199dbb38a8371cffe31a3e9c240a0dab613f48a /include/uapi/linux/smc.h
parent48b6190a00425a1bebac9f7ae4b338a1e20f50f3 (diff)
downloadlwn-a6a6fe27bab48f0d09a64b051e7bde432fcae081.tar.gz
lwn-a6a6fe27bab48f0d09a64b051e7bde432fcae081.zip
net/smc: Dynamic control handshake limitation by socket options
This patch aims to add dynamic control for SMC handshake limitation for every smc sockets, in production environment, it is possible for the same applications to handle different service types, and may have different opinion on SMC handshake limitation. This patch try socket options to complete it, since we don't have socket option level for SMC yet, which requires us to implement it at the same time. This patch does the following: - add new socket option level: SOL_SMC. - add new SMC socket option: SMC_LIMIT_HS. - provide getter/setter for SMC socket options. Link: https://lore.kernel.org/all/20f504f961e1a803f85d64229ad84260434203bd.1644323503.git.alibuda@linux.alibaba.com/ Signed-off-by: D. Wythe <alibuda@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/smc.h')
-rw-r--r--include/uapi/linux/smc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/smc.h b/include/uapi/linux/smc.h
index 6c2874fd2c00..343e7450c3a3 100644
--- a/include/uapi/linux/smc.h
+++ b/include/uapi/linux/smc.h
@@ -284,4 +284,8 @@ enum {
__SMC_NLA_SEID_TABLE_MAX,
SMC_NLA_SEID_TABLE_MAX = __SMC_NLA_SEID_TABLE_MAX - 1
};
+
+/* SMC socket options */
+#define SMC_LIMIT_HS 1 /* constraint on smc handshake */
+
#endif /* _UAPI_LINUX_SMC_H */