Skip to contentSkip to conversation

dlm_controld: Support for extended value of kernel

PATCH In review Heming Zhao 1 participant 2 messages Feb 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dlm_controld: Support for extended value of kernel

This patch should work with the updated kernel dlm module, because the code changes need to be aligned with the DLM_MAX_ADDR_COUNT value.

Another notice is that with the current dlm_controld code, users should explicitly add 'protocol=sctp' to the dlm.conf in a corosync 3.x env.

---
 dlm_controld/dlm_daemon.h | 6 +++---
 dlm_sand/sand_internal.h  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
dlm_controld/dlm_daemon.h +3 -3
index 4a533e3451e2..c902228f890f 100644
@@ -175,10 +175,10 @@ EXTERN struct dlm_option dlm_options[dlm_options_max];
 
 #define MAX_NODES	128
 
-/* Maximum number of IP addresses per node, when using SCTP and multi-ring in
-   corosync  In dlm-kernel this is DLM_MAX_ADDR_COUNT, currently 3. */
+/* Maximum number of IP addresses per node, when using SCTP and multi-[ring|link]
+   in corosync [2|3]. In dlm-kernel this is DLM_MAX_ADDR_COUNT, currently 8. */
 
-#define MAX_NODE_ADDRESSES 4
+#define MAX_NODE_ADDRESSES 8
 
 #define PROTO_TCP  0
 #define PROTO_SCTP 1
dlm_sand/sand_internal.h +2 -2
index 4c2fc0897051..c17287abcd47 100644
@@ -138,9 +138,9 @@ EXTERN struct dlm_option dlm_options[dlm_options_max];
    Copied in libdlm.h so apps don't need to include the kernel header. */
 
 /* Maximum number of IP addresses per node, when using SCTP.
-   In dlm-kernel this is DLM_MAX_ADDR_COUNT, currently 3. */
+   In dlm-kernel this is DLM_MAX_ADDR_COUNT, currently 8. */
 
-#define MAX_NODE_ADDRESSES 4
+#define MAX_NODE_ADDRESSES 8
 
 #define PROTO_TCP  0
 #define PROTO_SCTP 1
Signature · 1 line
2.48.1
#1 lore raw

Sorry, please ignore this mail and check next mail. This mail's patch subject too long and has been wrapped by editor.

Quoted 13 lines · Heming Zhao

This patch should work with the updated kernel dlm module, because the code changes need to be aligned with the DLM_MAX_ADDR_COUNT value.

Another notice is that with the current dlm_controld code, users should explicitly add 'protocol=sctp' to the dlm.conf in a corosync 3.x env.

---
  dlm_controld/dlm_daemon.h | 6 +++---
  dlm_sand/sand_internal.h  | 4 ++--
  2 files changed, 5 insertions(+), 5 deletions(-)