aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Roberts <lee.roberts@hpe.com>2018-03-24 21:44:42 -0600
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-26 11:23:58 +0000
commit828244c44fe59a15cddb5114709967446d928a25 (patch)
treec063d387782d1f1550df167aa7a99437bcf5bb40
parent1b8e8252b074e1981d09a53c1a5da19dc35541c9 (diff)
Assign correct NUMA node for DPDK crypto QAT devices (VPP-1210)
DPDK rte_cryptodev_socket_id() is returning zero for QAT devices. Apply DPDK patch where correct NUMA node can be obtained with pci_dev->device.numa_node. Change-Id: Ifaf35c7ac292627ea7cfb44a35b1e1c617811e80 Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
-rw-r--r--dpdk/dpdk-17.11_patches/0001-assign-QAT-cryptodev-to-correct-NUMA-node.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dpdk/dpdk-17.11_patches/0001-assign-QAT-cryptodev-to-correct-NUMA-node.patch b/dpdk/dpdk-17.11_patches/0001-assign-QAT-cryptodev-to-correct-NUMA-node.patch
new file mode 100644
index 00000000000..1358e9e36bd
--- /dev/null
+++ b/dpdk/dpdk-17.11_patches/0001-assign-QAT-cryptodev-to-correct-NUMA-node.patch
@@ -0,0 +1,29 @@
+From 6ca86563a48da5ffcc50a0f1ce7ac1b1af94ad88 Mon Sep 17 00:00:00 2001
+From: Lee Roberts <lee.roberts@hpe.com>
+Date: Fri, 23 Mar 2018 09:54:33 -0600
+Subject: [PATCH] assign QAT cryptodev to correct NUMA node
+
+rte_cryptodev_pmd_init_params should use NUMA node of the QAT device
+for its socket_id rather than the socket_id of the initializing process.
+
+Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
+---
+ drivers/crypto/qat/rte_qat_cryptodev.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c
+index 4f8e4bf..6197820 100644
+--- a/drivers/crypto/qat/rte_qat_cryptodev.c
++++ b/drivers/crypto/qat/rte_qat_cryptodev.c
+@@ -159,7 +159,7 @@ static int crypto_qat_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
+ {
+ struct rte_cryptodev_pmd_init_params init_params = {
+ .name = "",
+- .socket_id = rte_socket_id(),
++ .socket_id = pci_dev->device.numa_node,
+ .private_data_size = sizeof(struct qat_pmd_private),
+ .max_nb_sessions = RTE_QAT_PMD_MAX_NB_SESSIONS
+ };
+--
+1.9.1
+