vFW: Clear the pkt drop count for unsupported type in clearstats cmd 59/34659/1
authorAnand B Jyoti <anand.b.jyoti@intel.com>
Fri, 12 May 2017 02:29:32 +0000 (07:59 +0530)
committerAnand B Jyoti <anand.b.jyoti@intel.com>
Fri, 12 May 2017 02:29:32 +0000 (07:59 +0530)
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 <anand.b.jyoti@intel.com>
VNFs/vFW/pipeline/pipeline_vfw.c

index 934e442..f235bc5 100644 (file)
@@ -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;