fieldstat的endp_rx_pkt字段不统计与第三方设备的BFD包活包
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user