diff options
author | Jan Gelety <jgelety@cisco.com> | 2017-12-05 14:27:26 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-12-15 09:29:51 +0000 |
commit | 0ba508f0eac819c1985e825857f584b3d1537ffe (patch) | |
tree | a19599a44446816f69de2797af94a85b87dab99a /resources/libraries/python/VppConfigGenerator.py | |
parent | 2291eaac7509aadf30be407a6eb84cfa3d3a33d0 (diff) |
CSIT-861: SW cryptodev perf tests
Change-Id: I687216ca43569542d38be681ca04c898010fc65d
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python/VppConfigGenerator.py')
-rw-r--r-- | resources/libraries/python/VppConfigGenerator.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index eccada9979..def23712e5 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -211,15 +211,19 @@ class VppConfigGenerator(object): self.add_config_item(self._nodeconfig, '', path) self.add_dpdk_uio_driver('igb_uio') - def add_dpdk_sw_cryptodev(self, count): - """Add DPDK Crypto SW device configuration. - - :param count: Number of crypto SW devices to add. + def add_dpdk_sw_cryptodev(self, sw_pmd_type, socket_id, count): + """Add DPDK SW Crypto device configuration. + + :param sw_pmd_type: Type of SW crypto device PMD to add. + :param socket_id: Socket ID. + :param count: Number of SW crypto devices to add. + :type sw_pmd_type: str + :type socket_id: int :type count: int """ - for i in range(count): - cryptodev_config = 'vdev cryptodev_aesni_mb_pmd,socket_id={0}'.\ - format(str(i)) + for _ in range(count): + cryptodev_config = 'vdev cryptodev_{0}_pmd,socket_id={1}'.\ + format(sw_pmd_type, str(socket_id)) path = ['dpdk', cryptodev_config] self.add_config_item(self._nodeconfig, '', path) |