FIX: Do not set sriov_numvfs of QAT card to 0 in case of SW crypto tests 71/18171/1
authorJan Gelety <jgelety@cisco.com>
Thu, 7 Mar 2019 02:57:32 +0000 (03:57 +0100)
committerJan Gelety <jgelety@cisco.com>
Thu, 7 Mar 2019 06:57:33 +0000 (07:57 +0100)
- when sriov_numvfs of QAT card is set to 0 for SW crypto tests and then
  back to 32 for subsequent HW crypto the dpdk backend is not running

Change-Id: I9bc6b2549823e3318c31bda55a976199266e3535
Signed-off-by: Jan Gelety <jgelety@cisco.com>
resources/libraries/robot/performance/performance_setup.robot

index ed6f474..79e98a1 100644 (file)
 | | ... | ${topology_type} | ${nic_model}
 | | ${numvfs}= | Set Variable If
 | | ... | '${crypto_type}' == 'HW_cryptodev' | ${32}
-| | ... | '${crypto_type}' == 'SW_cryptodev' | ${0}
-| | Configure crypto device on all DUTs | force_init=${True} | numvfs=${numvfs}
+| | Run Keyword If | '${crypto_type}' == 'HW_cryptodev'
+| | ... | Configure crypto device on all DUTs | force_init=${True}
+| | ... | numvfs=${numvfs}
 | | Run Keyword If | '${crypto_type}' == 'HW_cryptodev'
 | | ... | Configure kernel module on all DUTs | vfio_pci | force_load=${True}