From 67985b619562bc1589bbb06f5c60f246dc986817 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Fri, 10 Mar 2023 11:56:04 +0800 Subject: [PATCH] =?UTF-8?q?fieldstat=E7=9A=84endp=5Frx=5Fpkt=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=8D=E7=BB=9F=E8=AE=A1=E4=B8=8E=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E8=AE=BE=E5=A4=87=E7=9A=84BFD=E5=8C=85=E6=B4=BB?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/packet_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/src/packet_io.cpp b/platform/src/packet_io.cpp index 26f22c6..e1ee36b 100644 --- a/platform/src/packet_io.cpp +++ b/platform/src/packet_io.cpp @@ -397,7 +397,6 @@ int packet_io_polling_endpoint(struct packet_io *handle, int thread_seq, void *c { marsio_buff_t *rx_buff = rx_buffs[j]; int data_len = marsio_buff_datalen(rx_buff); - throughput_metrics_inc(&g_metrics->dev_endpoint_rx, 1, data_len); if (is_upstream_keepalive_packet(rx_buff)) { @@ -406,6 +405,7 @@ int packet_io_polling_endpoint(struct packet_io *handle, int thread_seq, void *c continue; } + throughput_metrics_inc(&g_metrics->dev_endpoint_rx, 1, data_len); int action_bytes = 0; enum inject_pkt_action action = handle_inject_packet(handle, rx_buff, thread_seq, ctx, &action_bytes); assert(action_bytes > 0);