summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
diff options
context:
space:
mode:
authorProvoost <luc.provoost@intel.com>2017-12-15 18:33:59 +0100
committerProvoost <luc.provoost@intel.com>2017-12-18 15:14:28 +0100
commitc10781eecde9452a477d7c9fa1f1fc0c63df559e (patch)
tree14b5247e80c6d2191ae88dfa991ee0e6dc182608 /VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
parent65504ce40edc1a2f5ad154ed7935d93a3650e5b7 (diff)
Adding Security gateway testing
Using now .test files describing the test to be executed. Also desribed in the README file how to deal with SRIOV ports. Change-Id: I3eb1551d7f205fef3fa1914bc6959c2126d63425 Signed-off-by: Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py')
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py b/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
index 7438d4d6..daa96a50 100644
--- a/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
+++ b/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
@@ -183,6 +183,16 @@ class prox_sock(object):
def reset_stats(self):
self._send('reset stats')
+ def lat_stats(self, cores, task=0):
+ min_lat = max_lat = avg_lat = 0
+ self._send('lat stats %s %s' % (','.join(map(str, cores)), task))
+ for core in cores:
+ stats = self._recv().split(',')
+ min_lat += int(stats[0])
+ max_lat += int(stats[1])
+ avg_lat += int(stats[2])
+ return min_lat, max_lat, avg_lat
+
def core_stats(self, cores, task=0):
rx = tx = drop = tsc = hz = 0
self._send('core stats %s %s' % (','.join(map(str, cores)), task))