dlm: make tcp still work in multi-link env

This patch bypasses multi-link errors in TCP mode, allowing dlm
to operate on the first tcp link.

Signed-off-by: Heming Zhao <heming.zhao@suse.com>
Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
Heming Zhao 2025-03-10 15:36:21 +08:00 committed by David Teigland
parent a3672304ab
commit 03d2b62208

View File

@ -1826,8 +1826,8 @@ static int dlm_tcp_listen_validate(void)
{
/* We don't support multi-homed hosts */
if (dlm_local_count > 1) {
log_print("TCP protocol can't handle multi-homed hosts, try SCTP");
return -EINVAL;
log_print("Detect multi-homed hosts but use only the first IP address.");
log_print("Try SCTP, if you want to enable multi-link.");
}
return 0;