diff options
author | cohu <cong.hu@tieto.com> | 2018-12-20 11:33:07 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-12-20 09:23:52 +0000 |
commit | 359db1e622c7046102853e1bb0505897711e1a33 (patch) | |
tree | 8e453c846fbbb0f82ec5058f6bb1ac2c426ed819 /src/vnet/policer/node_funcs.c | |
parent | d0f70a346d99619000f7a5349178af2d33bf6005 (diff) |
delete policer classify repeat count drop packets when action is DROP
Change-Id: Id912bc570f42b1709596a917ecf5e56c237ce192
Signed-off-by: cohu <cong.hu@tieto.com>
Diffstat (limited to 'src/vnet/policer/node_funcs.c')
-rw-r--r-- | src/vnet/policer/node_funcs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/vnet/policer/node_funcs.c b/src/vnet/policer/node_funcs.c index 594afca2b1b..7e7e1312a46 100644 --- a/src/vnet/policer/node_funcs.c +++ b/src/vnet/policer/node_funcs.c @@ -523,7 +523,6 @@ policer_classify_inline (vlib_main_t * vm, u32 hits = 0; u32 misses = 0; u32 chain_hits = 0; - u32 drop = 0; u32 n_next_nodes; u64 time_in_policer_periods; @@ -709,7 +708,6 @@ policer_classify_inline (vlib_main_t * vm, { next0 = POLICER_CLASSIFY_NEXT_INDEX_DROP; b0->error = node->errors[POLICER_CLASSIFY_ERROR_DROP]; - drop++; } hits++; } @@ -745,7 +743,6 @@ policer_classify_inline (vlib_main_t * vm, next0 = POLICER_CLASSIFY_NEXT_INDEX_DROP; b0->error = node->errors[POLICER_CLASSIFY_ERROR_DROP]; - drop++; } hits++; chain_hits++; @@ -780,8 +777,6 @@ policer_classify_inline (vlib_main_t * vm, POLICER_CLASSIFY_ERROR_HIT, hits); vlib_node_increment_counter (vm, node->node_index, POLICER_CLASSIFY_ERROR_CHAIN_HIT, chain_hits); - vlib_node_increment_counter (vm, node->node_index, - POLICER_CLASSIFY_ERROR_DROP, drop); return frame->n_vectors; } |