test/crypto: refactor scheduler workers init
authorRebecca Troy <rebecca.troy@intel.com>
Thu, 2 Sep 2021 11:54:16 +0000 (11:54 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Mon, 6 Sep 2021 19:49:19 +0000 (21:49 +0200)
commit9772dcf7c135d2fc825973ba858e150afceb3dee
tree19718ab01c9c78735a4923a2f305cc0428bbdc82
parent394407f50c90ca3ce4b882aefb9e26eae4ba6bca
test/crypto: refactor scheduler workers init

Previously, the scheduler unit test only created and attached 1 or 2
AESNI-MB cryptodev PMDs as workers if less than 2 AESNI-MB PMDs had
already been initialized.

This commit changes this to always create and attach 2 new AESNI-MB
cryptodev PMDs, regardless of previously initialized AESNI-MB PMDs.

Signed-off-by: Rebecca Troy <rebecca.troy@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
app/test/test_cryptodev.c