From 4490735d6c1e4977aa8c5f665a99195c5df0a617 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Wed, 20 Mar 2024 14:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0NZ=E7=9B=91=E6=8E=A7=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=9Aerr=5Fblock=5FP=E4=B8=8D=E5=8C=85=E5=90=ABBFD?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E6=8E=A2=E6=B5=8B=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/packet_io.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/src/packet_io.cpp b/platform/src/packet_io.cpp index 88f19b1..2dc2f3f 100644 --- a/platform/src/packet_io.cpp +++ b/platform/src/packet_io.cpp @@ -1211,6 +1211,8 @@ static void handle_inject_vxlan_packet(marsio_buff_t *rx_buff, struct thread_ctx { struct session_table *session_table = thread_ctx->session_table; struct thread_metrics *thread_metrics = &thread_ctx->thread_metrics; + struct packet_io *packet_io = thread_ctx->ref_io; + int thread_index = thread_ctx->thread_index; struct metadata meta; struct vxlan_hdr *vxlan_hdr = NULL; @@ -1223,8 +1225,9 @@ static void handle_inject_vxlan_packet(marsio_buff_t *rx_buff, struct thread_ctx if (vxlan_frame_decode(&vxlan_hdr, raw_data, raw_len) == -1) { THROUGHPUT_METRICS_INC(&(thread_metrics->endpoint_vxlan_drop), 1, raw_len); - meta.raw_len = raw_len; - action_err_block(rx_buff, &meta, NULL, thread_ctx); + // health check packet not increase err_block metrics + PACKET_TRACE_ON_FREE(packet_io->instance, rx_buff); + marsio_buff_free(packet_io->instance, &rx_buff, 1, 0, thread_index); return; }