2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#893] addressed review comments

This commit is contained in:
Razvan Becheriu
2020-04-09 00:42:32 +03:00
parent 3bbaaeb401
commit ea9a9fa460
30 changed files with 567 additions and 512 deletions

View File

@@ -102,18 +102,6 @@ public:
uint16_t dhcp4o6_port = getUint16(global, "dhcp4o6-port");
cfg->setDhcp4o6Port(dhcp4o6_port);
// Set enable multi threading flag.
bool enable_multi_threading = getBoolean(global, "enable-multi-threading");
cfg->setEnableMultiThreading(enable_multi_threading);
// Set packet thread pool size.
uint32_t packet_thread_pool_size = getUint32(global, "packet-thread-pool-size");
cfg->setPktThreadPoolSize(packet_thread_pool_size);
// Set packet thread queue size.
uint32_t packet_thread_queue_size = getUint32(global, "packet-thread-queue-size");
cfg->setPktThreadQueueSize(packet_thread_queue_size);
// Set the global user context.
ConstElementPtr user_context = global->get("user-context");
if (user_context) {
@@ -420,6 +408,12 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
continue;
}
if (config_pair.first == "multi-threading") {
//DHCPMultiThreadingParser parser;
//srv_cfg->setDHCPMultiThreading(parser.parse(config_pair.second));
continue;
}
if (config_pair.first == "host-reservation-identifiers") {
HostReservationIdsParser4 parser;
parser.parse(config_pair.second);
@@ -587,10 +581,7 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
(config_pair.first == "ddns-qualifying-suffix") ||
(config_pair.first == "store-extended-info") ||
(config_pair.first == "statistic-default-sample-count") ||
(config_pair.first == "statistic-default-sample-age") ||
(config_pair.first == "enable-multi-threading") ||
(config_pair.first == "packet-thread-pool-size") ||
(config_pair.first == "packet-thread-queue-size")) {
(config_pair.first == "statistic-default-sample-age")) {
CfgMgr::instance().getStagingCfg()->addConfiguredGlobal(config_pair.first,
config_pair.second);
continue;