bugfix: 配置检查判断错误

This commit is contained in:
wangmenglan
2023-06-09 15:31:34 +08:00
parent e716f21b8e
commit 2741eb117a

View File

@@ -1815,7 +1815,7 @@ struct packet_io *packet_io_create(const char *profile, int thread_num, cpu_set_
if (handle->config.tap_allow_mutilthread)
{
if (handle->config.bpf_hash_mode != 2 || handle->config.bpf_hash_mode != 4)
if (handle->config.bpf_hash_mode != 2 && handle->config.bpf_hash_mode != 4)
{
TFE_LOG_ERROR(logger, "%s: under mutilthread mode, bpf_hash_mode[%d] invalid.", LOG_TAG_PKTIO, handle->config.bpf_hash_mode);
goto error_out;