|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
/*
|
|
|
* Copyright (c) 2002-2005 MontaVista Software, Inc.
|
|
* Copyright (c) 2002-2005 MontaVista Software, Inc.
|
|
|
- * Copyright (c) 2006-2019 Red Hat, Inc.
|
|
|
|
|
|
|
+ * Copyright (c) 2006-2022 Red Hat, Inc.
|
|
|
*
|
|
*
|
|
|
* All rights reserved.
|
|
* All rights reserved.
|
|
|
*
|
|
*
|
|
@@ -91,6 +91,7 @@
|
|
|
#define KNET_PING_PRECISION 2048
|
|
#define KNET_PING_PRECISION 2048
|
|
|
#define KNET_PONG_COUNT 2
|
|
#define KNET_PONG_COUNT 2
|
|
|
#define KNET_PMTUD_INTERVAL 30
|
|
#define KNET_PMTUD_INTERVAL 30
|
|
|
|
|
+#define KNET_MTU 0
|
|
|
#define KNET_DEFAULT_TRANSPORT KNET_TRANSPORT_UDP
|
|
#define KNET_DEFAULT_TRANSPORT KNET_TRANSPORT_UDP
|
|
|
|
|
|
|
|
#define DEFAULT_PORT 5405
|
|
#define DEFAULT_PORT 5405
|
|
@@ -137,6 +138,8 @@ static void *totem_get_param_by_name(struct totem_config *totem_config, const ch
|
|
|
return &totem_config->miss_count_const;
|
|
return &totem_config->miss_count_const;
|
|
|
if (strcmp(param_name, "totem.knet_pmtud_interval") == 0)
|
|
if (strcmp(param_name, "totem.knet_pmtud_interval") == 0)
|
|
|
return &totem_config->knet_pmtud_interval;
|
|
return &totem_config->knet_pmtud_interval;
|
|
|
|
|
+ if (strcmp(param_name, "totem.knet_mtu") == 0)
|
|
|
|
|
+ return &totem_config->knet_mtu;
|
|
|
if (strcmp(param_name, "totem.knet_compression_threshold") == 0)
|
|
if (strcmp(param_name, "totem.knet_compression_threshold") == 0)
|
|
|
return &totem_config->knet_compression_threshold;
|
|
return &totem_config->knet_compression_threshold;
|
|
|
if (strcmp(param_name, "totem.knet_compression_level") == 0)
|
|
if (strcmp(param_name, "totem.knet_compression_level") == 0)
|
|
@@ -335,6 +338,7 @@ void totem_volatile_config_read (struct totem_config *totem_config, icmap_map_t
|
|
|
|
|
|
|
|
totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.miss_count_const", deleted_key, MISS_COUNT_CONST, 0);
|
|
totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.miss_count_const", deleted_key, MISS_COUNT_CONST, 0);
|
|
|
totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.knet_pmtud_interval", deleted_key, KNET_PMTUD_INTERVAL, 0);
|
|
totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.knet_pmtud_interval", deleted_key, KNET_PMTUD_INTERVAL, 0);
|
|
|
|
|
+ totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.knet_mtu", deleted_key, KNET_MTU, 0);
|
|
|
|
|
|
|
|
totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.token_retransmit", deleted_key,
|
|
totem_volatile_config_set_uint32_value(totem_config, temp_map, "totem.token_retransmit", deleted_key,
|
|
|
(int)(totem_config->token_timeout / (totem_config->token_retransmits_before_loss_const + 0.2)), 0);
|
|
(int)(totem_config->token_timeout / (totem_config->token_retransmits_before_loss_const + 0.2)), 0);
|