aboutsummaryrefslogtreecommitdiffstats
path: root/odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch
diff options
context:
space:
mode:
authorMichal Mazur <mkm@semihalf.com>2018-02-21 20:25:30 +0100
committerSzymon Sliwa <szs@semihalf.com>2018-02-26 16:27:04 +0100
commit09f6ceb4a70a64b999af5c8e0960ae0a81168172 (patch)
tree47d6c7359d902b2009ec4b29d3dee24953488db1 /odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch
parent708ae49d7a1ff8341152dc7ee7f3a5abafb2d2c0 (diff)
odp: Update readme file and include odp patches1707
Restore odp-linux section in readme file as it can now be build with minor modification. Required patches are included in odp directory. Slightly improve other sections. Change-Id: I2e7f8bc7802627bc15b07b81ddf2e9b4f72f5d41 Signed-off-by: Michal Mazur <mkm@semihalf.com> Signed-off-by: Szymon Sliwa <szs@semihalf.com>
Diffstat (limited to 'odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch')
-rw-r--r--odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch b/odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch
new file mode 100644
index 00000000..08b77dd0
--- /dev/null
+++ b/odp/odp-dpdk/0002-linux-dpdk-crypto-Change-queue-amount.patch
@@ -0,0 +1,43 @@
+From 255ade1eb70498168b58551fd2fb78634029fdd1 Mon Sep 17 00:00:00 2001
+From: Szymon Sliwa <szs@semihalf.com>
+Date: Tue, 28 Nov 2017 17:51:55 +0100
+Subject: [PATCH 2/4] linux-dpdk: crypto: Change queue amount
+
+Changed the amount of queue pairs created for
+cryptodevs to the maximal possible amount,
+this is a workaround, but enables testing of
+the odp4vpp project.
+
+ODP-DPDK maps cryptodev queue pairs to cores
+by the odp_cpu_id (which is thread id in my
+case). So if ODP-DPDK is started with cpu
+mask 0x1 it should be enough to have 1
+pair of cryptodev queues. Unfortunatelly
+that is not the case - later additional
+threads are spawned using
+odph_odpthreads_create, and ODP-DPDK
+crashes spectacularily trying to access
+the abscent queues. (this commit only
+proposes a workaround)
+---
+ platform/linux-dpdk/odp_crypto.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/platform/linux-dpdk/odp_crypto.c b/platform/linux-dpdk/odp_crypto.c
+index 5ed84bc..1103cdd 100644
+--- a/platform/linux-dpdk/odp_crypto.c
++++ b/platform/linux-dpdk/odp_crypto.c
+@@ -259,9 +259,7 @@ int odp_crypto_init_global(void)
+ struct rte_cryptodev_info dev_info;
+
+ rte_cryptodev_info_get(cdev_id, &dev_info);
+- nb_queue_pairs = odp_cpu_count();
+- if (nb_queue_pairs > dev_info.max_nb_queue_pairs)
+- nb_queue_pairs = dev_info.max_nb_queue_pairs;
++ nb_queue_pairs = dev_info.max_nb_queue_pairs;
+
+ struct rte_cryptodev_qp_conf qp_conf;
+
+--
+2.7.4
+