From 2741eb117aaff06f5bf65d1c0ec7590aa0913601 Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Fri, 9 Jun 2023 15:31:34 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E9=85=8D=E7=BD=AE=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_packet_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;