From 5046e1f7b1533506a480ba8d000c78e147d4b8aa Mon Sep 17 00:00:00 2001 From: Deepak S Date: Mon, 14 Aug 2017 12:38:14 +0530 Subject: Enable tpkts_processed counter in acl JIRA: SAMPLEVNF-72 Change-Id: Iadb3173c76306a48860313177f1b86e8410c7df3 Signed-off-by: Deepak S --- VNFs/vACL/pipeline/pipeline_acl_be.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'VNFs/vACL/pipeline') 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) -- cgit 1.2.3-korg