summaryrefslogtreecommitdiffstats
path: root/VNFs/vACL
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-08-14 12:38:14 +0530
committerDeepak S <deepak.s@linux.intel.com>2017-08-14 12:38:14 +0530
commit5046e1f7b1533506a480ba8d000c78e147d4b8aa (patch)
tree0d5753be9e11ab038c4e8d15939f7810b72ef770 /VNFs/vACL
parenteaaf57ee5a877c4744afb899e46536e5a281cf7a (diff)
Enable tpkts_processed counter in acl
JIRA: SAMPLEVNF-72 Change-Id: Iadb3173c76306a48860313177f1b86e8410c7df3 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'VNFs/vACL')
-rw-r--r--VNFs/vACL/pipeline/pipeline_acl_be.c12
1 files changed, 12 insertions, 0 deletions
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)