[dts] [PATCH V1 3/3] conf: modify the cryptodev conf and specify the qat crypto device

Xinfeng Zhao xinfengx.zhao at intel.com
Thu Jun 6 02:23:05 CEST 2019


Signed-off-by: Xinfeng Zhao <xinfengx.zhao at intel.com>
---
 conf/l2fwd_cryptodev_func.cfg        | 3 +++
 conf/unit_tests_cryptodev_func.cfg   | 5 ++++-
 conf/virtio_ipsec_cryptodev_func.cfg | 1 +
 conf/virtio_perf_cryptodev_func.cfg  | 1 +
 conf/virtio_unit_cryptodev_func.cfg  | 1 +
 5 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/conf/l2fwd_cryptodev_func.cfg b/conf/l2fwd_cryptodev_func.cfg
index 6f3b146..a1b2418 100644
--- a/conf/l2fwd_cryptodev_func.cfg
+++ b/conf/l2fwd_cryptodev_func.cfg
@@ -7,6 +7,9 @@ l="9,10,66"
 socket-mem="2048,0"
 n=4
 
+# specify the qat devices in eal white list
+w="0000:1a:01.0 -w 0000:1c:01.0 -w 0000:1e:01.0"
+
 [test_scheduler_rr_AES_CBC_auto]
 vdev="crypto_scheduler_pmd_1,slave=0000:1a:01.0_qat_sym,slave=0000:3f:01.0_qat_sym,slave=0000:3d:01.0_qat_sym,mode=round-robin"
 
diff --git a/conf/unit_tests_cryptodev_func.cfg b/conf/unit_tests_cryptodev_func.cfg
index 9b80025..d5b3b30 100644
--- a/conf/unit_tests_cryptodev_func.cfg
+++ b/conf/unit_tests_cryptodev_func.cfg
@@ -5,4 +5,7 @@ crypto_dev_id="37c9"
 # eal config
 l="9,10,66"
 socket-mem="2048,0 --legacy-mem"
-n=6
\ No newline at end of file
+n=4
+
+# specify the qat device in eal white list to avoid reach the maximum number of crypto devices
+w="0000:1a:01.0"
diff --git a/conf/virtio_ipsec_cryptodev_func.cfg b/conf/virtio_ipsec_cryptodev_func.cfg
index 2e727c6..0b51b7d 100644
--- a/conf/virtio_ipsec_cryptodev_func.cfg
+++ b/conf/virtio_ipsec_cryptodev_func.cfg
@@ -6,6 +6,7 @@ crypto_dev_id="37c9"
 vfio_pci="0000:60:00.0 0000:60:00.1 0000:3b:00.0 0000:3b:00.1"
 
 # default crypto device and sw device config
+w="0000:1a:01.0"
 vdev="crypto_aesni_mb_pmd_1 --vdev crypto_aesni_mb_pmd_2"
 
 [vm0]
diff --git a/conf/virtio_perf_cryptodev_func.cfg b/conf/virtio_perf_cryptodev_func.cfg
index 5a9b2cb..cdadf31 100644
--- a/conf/virtio_perf_cryptodev_func.cfg
+++ b/conf/virtio_perf_cryptodev_func.cfg
@@ -6,6 +6,7 @@ crypto_dev_id="37c9"
 vfio_pci="0000:60:00.0 0000:60:00.1"
 
 # Vhost-crypto option config
+w="0000:1a:01.0"
 vdev="crypto_aesni_mb_pmd_1"
 
 [test_aesni_mb_aes_cbc_sha1_hmac]
diff --git a/conf/virtio_unit_cryptodev_func.cfg b/conf/virtio_unit_cryptodev_func.cfg
index 1ffd418..f8165bd 100644
--- a/conf/virtio_unit_cryptodev_func.cfg
+++ b/conf/virtio_unit_cryptodev_func.cfg
@@ -6,6 +6,7 @@ crypto_dev_id="37c9"
 vfio_pci="0000:60:00.0 0000:60:00.1"
 
 # Vhost-crypto option config
+w="0000:1a:01.0"
 vdev="crypto_aesni_mb_pmd_1"
 
 [vm0]
-- 
2.7.4



More information about the dts mailing list