Enable tpkts_processed counter in acl 67/39267/1
authorDeepak S <deepak.s@linux.intel.com>
Mon, 14 Aug 2017 07:08:14 +0000 (12:38 +0530)
committerDeepak S <deepak.s@linux.intel.com>
Mon, 14 Aug 2017 07:08:14 +0000 (12:38 +0530)
JIRA: SAMPLEVNF-72

Change-Id: Iadb3173c76306a48860313177f1b86e8410c7df3
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
VNFs/vACL/pipeline/pipeline_acl_be.c

index c80d306..b6e6076 100644 (file)
@@ -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)