From: Lee Roberts Date: Fri, 9 Mar 2018 18:00:36 +0000 (-0700) Subject: crypto/qat: assign device to correct NUMA node X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5d3ac0d775c519e609e059c46ef26b99fed4adb2;p=dpdk.git crypto/qat: assign device 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 Acked-by: Fiona Trahe --- diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c index 03a9c81fa1..d2a451e7dc 100644 --- a/drivers/crypto/qat/rte_qat_cryptodev.c +++ b/drivers/crypto/qat/rte_qat_cryptodev.c @@ -130,7 +130,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 };