blob: 32d2c783cdee3d46449e8c49c2e1d5f8d7bae0bd [file] [log] [blame]
Lee Robertsfde09292018-03-07 19:57:49 -07001From b01857dfdb4e46b8c7d306c608c58ebbabc252ec Mon Sep 17 00:00:00 2001
2From: Lee Roberts <lee.roberts@hpe.com>
3Date: Fri, 9 Mar 2018 10:49:34 -0700
4Subject: [PATCH] assign QAT cryptodev to correct NUMA node
5
6rte_cryptodev_pmd_init_params should use NUMA node of the QAT device
7for its socket_id rather than the socket_id of the initializing process.
8
9Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
10---
11 drivers/crypto/qat/rte_qat_cryptodev.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c
15index bf83740..82641aa 100644
16--- a/drivers/crypto/qat/rte_qat_cryptodev.c
17+++ b/drivers/crypto/qat/rte_qat_cryptodev.c
18@@ -130,7 +130,7 @@ static int crypto_qat_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
19 {
20 struct rte_cryptodev_pmd_init_params init_params = {
21 .name = "",
22- .socket_id = rte_socket_id(),
23+ .socket_id = pci_dev->device.numa_node,
24 .private_data_size = sizeof(struct qat_pmd_private),
25 .max_nb_sessions = RTE_QAT_PMD_MAX_NB_SESSIONS
26 };
27--
281.9.1
29