aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/config.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-06-02 09:45:19 -0400
committerDavid Teigland <teigland@redhat.com>2021-06-02 11:53:04 -0500
commitac7d5d036dc93710971f532ed57f9a6858a2b262 (patch)
tree83ce0126a85920f52dc3a40d779c3a9fe918c8fa /fs/dlm/config.h
parent9a4139a79403161f190cf30be7d89ac877ae3b12 (diff)
downloadlinux-ac7d5d036dc93710971f532ed57f9a6858a2b262.tar.gz
fs: dlm: introduce proto values
Currently the dlm protocol values are that TCP is 0 and everything else is SCTP. This makes it difficult to introduce possible other transport layers. The only one user space tool dlm_controld, which I am aware of, handles the protocol value 1 for SCTP. We change it now to handle SCTP as 1, this will break user space API but it will fix it so we can add possible other transport layers. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/config.h')
-rw-r--r--fs/dlm/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/dlm/config.h b/fs/dlm/config.h
index d2cd4bd20313f..00374b45c748e 100644
--- a/fs/dlm/config.h
+++ b/fs/dlm/config.h
@@ -23,6 +23,9 @@ struct dlm_config_node {
#define DLM_MAX_ADDR_COUNT 3
+#define DLM_PROTO_TCP 0
+#define DLM_PROTO_SCTP 1
+
struct dlm_config_info {
int ci_tcp_port;
int ci_buffer_size;