diff options
| author | liuchang <[email protected]> | 2023-04-04 07:54:56 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-04-04 07:54:56 +0000 |
| commit | e22fc4c33ffe0b06bcdfcb42816943d29e69e192 (patch) | |
| tree | baf864c1cad51c48d35f921697b51cda7249e1bb /shaping/src/shaper.cpp | |
| parent | c423f1dfc4c55bc0ba91b7bc43c06fc41755d4ce (diff) | |
add global metric test case
Diffstat (limited to 'shaping/src/shaper.cpp')
| -rw-r--r-- | shaping/src/shaper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaping/src/shaper.cpp b/shaping/src/shaper.cpp index ba376db..9d3deb1 100644 --- a/shaping/src/shaper.cpp +++ b/shaping/src/shaper.cpp @@ -904,7 +904,7 @@ void shaper_packet_recv_and_process(struct shaping_thread_ctx *ctx) } shaper_global_stat_throughput_inc(ctx->global_stat, SHAPING_GLOBAL_STAT_RX, meta.raw_len); - if (meta.is_ctrl_pkt || !sf) {//ctrl pkt need send directly + if (meta.is_ctrl_pkt || !sf || sf->rule_num == 0) {//ctrl pkt need send directly marsio_send_burst(ctx->marsio_info->mr_path, ctx->thread_index, &rx_buff[i], 1); shaper_global_stat_throughput_inc(ctx->global_stat, SHAPING_GLOBAL_STAT_TX, meta.raw_len); } else { |
