Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Dec 4, 2024
1 parent 8c77cc5 commit 09d18ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions orchagent/flexcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ void FlexCounterOrch::doTask(Consumer &consumer)
// If it is exist and the value is 'true' we need to skip the iteration in order to delay the counter creation.
// The field will clear out and counter will be created when enable_counters script is called.
}
else if (field == BULK_SIZE_FIELD)
else if (field == BULK_CHUNK_SIZE_FIELD)
{
setFlexCounterGroupBulkSize(flexCounterGroupMap[key], value, false);
setFlexCounterGroupBulkChunkSize(flexCounterGroupMap[key], value, false);
}
else
{
Expand Down
12 changes: 6 additions & 6 deletions orchagent/saihelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ static inline void initSaiRedisCounterEmptyParameter(sai_redis_flex_counter_grou
initSaiRedisCounterEmptyParameter(flex_counter_group_param.stats_mode);
initSaiRedisCounterEmptyParameter(flex_counter_group_param.plugin_name);
initSaiRedisCounterEmptyParameter(flex_counter_group_param.plugins);
initSaiRedisCounterEmptyParameter(flex_counter_group_param.bulk_size);
initSaiRedisCounterEmptyParameter(flex_counter_group_param.bulk_chunk_size);
}

static inline void initSaiRedisCounterParameterFromString(sai_s8_list_t &sai_s8_list, const std::string &str)
Expand Down Expand Up @@ -936,7 +936,7 @@ void setFlexCounterGroupParameter(const string &group,
attr.id = SAI_REDIS_SWITCH_ATTR_FLEX_COUNTER_GROUP;
attr.value.ptr = &flex_counter_group_param;

initSaiRedisCounterEmptyParameter(flex_counter_group_param.bulk_size);
initSaiRedisCounterEmptyParameter(flex_counter_group_param.bulk_chunk_size);
initSaiRedisCounterParameterFromString(flex_counter_group_param.counter_group_name, group);
initSaiRedisCounterParameterFromString(flex_counter_group_param.poll_interval, poll_interval);
initSaiRedisCounterParameterFromString(flex_counter_group_param.operation, operation);
Expand Down Expand Up @@ -1016,9 +1016,9 @@ void setFlexCounterGroupStatsMode(const std::string &group,
notifySyncdCounterOperation(is_gearbox, attr);
}

void setFlexCounterGroupBulkSize(const std::string &group,
const std::string &bulk_size,
bool is_gearbox)
void setFlexCounterGroupBulkChunkSize(const std::string &group,
const std::string &bulk_chunk_size,
bool is_gearbox)
{
sai_attribute_t attr;
sai_redis_flex_counter_group_parameter_t flex_counter_group_param;
Expand All @@ -1028,7 +1028,7 @@ void setFlexCounterGroupBulkSize(const std::string &group,

initSaiRedisCounterEmptyParameter(flex_counter_group_param);
initSaiRedisCounterParameterFromString(flex_counter_group_param.counter_group_name, group);
initSaiRedisCounterParameterFromString(flex_counter_group_param.bulk_size, bulk_size);
initSaiRedisCounterParameterFromString(flex_counter_group_param.bulk_chunk_size, bulk_chunk_size);

notifySyncdCounterOperation(is_gearbox, attr);
}
Expand Down
6 changes: 3 additions & 3 deletions orchagent/saihelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ void setFlexCounterGroupStatsMode(const std::string &group,
const std::string &stats_mode,
bool is_gearbox=false);

void setFlexCounterGroupBulkSize(const std::string &group,
const std::string &bulk_size,
bool is_gearbox);
void setFlexCounterGroupBulkChunkSize(const std::string &group,
const std::string &bulk_size,
bool is_gearbox);

void delFlexCounterGroup(const std::string &group,
bool is_gearbox=false);
Expand Down

0 comments on commit 09d18ba

Please sign in to comment.