bugfix: call duplicated packet filter too many times

This commit is contained in:
luwenpeng
2024-04-17 17:53:42 +08:00
parent 3771b68873
commit d57c81697f
9 changed files with 88 additions and 60 deletions

View File

@@ -352,7 +352,7 @@ static inline void stellar_stat_output_cron(void *ctx)
int main(int argc, char **argv)
{
uint8_t nr_threads;
uint8_t nr_threads = 0;
struct cron_task stat_task =
{
.callback = stellar_stat_output_cron,
@@ -381,6 +381,7 @@ int main(int argc, char **argv)
goto error_out;
}
stellar_config_print(config);
STELLAR_LOG_DEBUG("sizeof(struct session) = %lu bytes", sizeof(struct session));
nr_threads = config->io_opts.nr_threads;
if (id_generator_init(config->dev_opts.base, config->dev_opts.offset) != 0)