From: Anand B Jyoti Date: Fri, 12 May 2017 02:29:32 +0000 (+0530) Subject: vFW: Clear the pkt drop count for unsupported type in clearstats cmd X-Git-Tag: v1.0.0~12^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=d77a6c15ee9e899ceb7b46a6d7a4b2a267ef1b13;p=samplevnf.git vFW: Clear the pkt drop count for unsupported type in clearstats cmd JIRA: SAMPLEVNF-13 The packets drop counter of unsupported type was not cleared during clearstats command of the vFW. This patch adds the fix to clear the pkt_drop_unsupported_type at the clearstats cmd. Change-Id: I07d2c85a288efbc5e1fa6cee84c2ffe12e9673f4 Signed-off-by: Anand B Jyoti --- diff --git a/VNFs/vFW/pipeline/pipeline_vfw.c b/VNFs/vFW/pipeline/pipeline_vfw.c index 934e442a..f235bc59 100644 --- a/VNFs/vFW/pipeline/pipeline_vfw.c +++ b/VNFs/vFW/pipeline/pipeline_vfw.c @@ -2420,6 +2420,7 @@ static void cmd_vfw_clearstats_parsed(__attribute__ ((unused)) rte_vfw_counter_table[i].pkts_drop_ttl = 0; rte_vfw_counter_table[i].pkts_drop_bad_size = 0; rte_vfw_counter_table[i].pkts_drop_fragmented = 0; + rte_vfw_counter_table[i].pkts_drop_unsupported_type = 0; rte_vfw_counter_table[i].pkts_drop_without_arp_entry = 0; rte_vfw_counter_table[i].internal_time_sum = 0; rte_vfw_counter_table[i].external_time_sum = 0;