summaryrefslogtreecommitdiff
path: root/common/src/tfe_packet_io.cpp
diff options
context:
space:
mode:
authorwangmenglan <[email protected]>2023-06-09 15:31:34 +0800
committerwangmenglan <[email protected]>2023-06-09 15:31:34 +0800
commit2741eb117aaff06f5bf65d1c0ec7590aa0913601 (patch)
tree61aef5696cd88601ae5e34d59e625919bfcf7c1d /common/src/tfe_packet_io.cpp
parente716f21b8ee5c99b84a9029f40964d8de1a9c6fb (diff)
bugfix: 配置检查判断错误v4.8.24-20230609
Diffstat (limited to 'common/src/tfe_packet_io.cpp')
-rw-r--r--common/src/tfe_packet_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/tfe_packet_io.cpp b/common/src/tfe_packet_io.cpp
index a522a57..373173e 100644
--- a/common/src/tfe_packet_io.cpp
+++ b/common/src/tfe_packet_io.cpp
@@ -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;