From: Deepak S <deepak.s@linux.intel.com>
Date: Mon, 14 Aug 2017 07:08:14 +0000 (+0530)
Subject: Enable  tpkts_processed counter in acl
X-Git-Tag: opnfv-5.0.RC1~48
X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F39267%2F1;p=samplevnf.git

Enable  tpkts_processed counter in acl

JIRA: SAMPLEVNF-72

Change-Id: Iadb3173c76306a48860313177f1b86e8410c7df3
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
---

diff --git a/VNFs/vACL/pipeline/pipeline_acl_be.c b/VNFs/vACL/pipeline/pipeline_acl_be.c
index c80d3067..b6e6076d 100644
--- a/VNFs/vACL/pipeline/pipeline_acl_be.c
+++ b/VNFs/vACL/pipeline/pipeline_acl_be.c
@@ -884,6 +884,9 @@ pkt_work_acl_key(struct rte_pipeline *p,
 					(struct ether_addr *)eth_dest, *port_out_id);
 
 				}
+				p_acl->counters->tpkts_processed++;
+				p_acl->counters->bytes_processed +=
+				    packet_length;
 			} else {
 				if (unlikely(ret_arp_data == NULL)) {
 					if (ACL_DEBUG)
@@ -994,6 +997,9 @@ pkt_work_acl_key(struct rte_pipeline *p,
 					nd_send_buffered_pkts(ret_nd_data,
 					(struct ether_addr *)eth_dest, *port_out_id);
 				}
+				p_acl->counters->tpkts_processed++;
+				p_acl->counters->bytes_processed +=
+				    packet_length;
 			} else {
 				if (unlikely(ret_nd_data == NULL)) {
 					if (ACL_DEBUG)
@@ -1567,6 +1573,9 @@ pkt_work_acl_ipv4_key(struct rte_pipeline *p,
 					(struct ether_addr *)eth_dest, *port_out_id);
 
 				}
+				p_acl->counters->tpkts_processed++;
+				p_acl->counters->bytes_processed +=
+				    packet_length;
 			} else {
 				if (unlikely(ret_arp_data == NULL)) {
 
@@ -2271,6 +2280,9 @@ pkt_work_acl_ipv6_key(struct rte_pipeline *p,
 					nd_send_buffered_pkts(ret_nd_data,
 					(struct ether_addr *)eth_dest, *port_out_id);
 				}
+				p_acl->counters->tpkts_processed++;
+				p_acl->counters->bytes_processed +=
+				    packet_length;
 			} else {
 				if (unlikely(ret_nd_data == NULL)) {
 					if (ACL_DEBUG)