assign QAT cryptodev to correct NUMA node
PATCH 1/1 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.
--- drivers/crypto/qat/rte_qat_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/rte_qat_cryptodev.c +1 -1
@@ -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 };
Signature · 1 line
1.9.1
Hi Lee,
Thanks for investigating this.
Quoted 8 lines
-----Original Message-----
From: Lee Roberts [mailto:[email protected]]
Sent: Friday, March 9, 2018 6:01 PM
To: Griffin, John <[email protected]>; Trahe, Fiona <[email protected]>; Jain, Deepak K <[email protected]>
Cc: [email protected]; Lee Roberts <[email protected]>
Subject: [PATCH] assign QAT cryptodev to correct NUMA node
Quoted 4 lines
rte_cryptodev_pmd_init_paramsshould use NUMA node of the QAT device for itssocket_idrather than thesocket_idof the initializing process.Signed-off-by Lee Roberts <[email protected]>
De Lara Guarch, Pablo
AppliedQuoted 22 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Trahe, Fiona
Sent: Friday, March 9, 2018 6:18 PM
To: Lee Roberts <[email protected]>; Griffin, John <[email protected]>; Jain, Deepak K <[email protected]>
Cc: [email protected]; Trahe, Fiona <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] assign QAT cryptodev to correct NUMA nodeHi Lee,
Thanks for investigating this.Quoted 8 lines
-----Original Message-----
From: Lee Roberts [mailto:[email protected]]
Sent: Friday, March 9, 2018 6:01 PM
To: Griffin, John <[email protected]>; Trahe, Fiona <[email protected]>; Jain, Deepak K <[email protected]>
Cc: [email protected]; Lee Roberts <[email protected]>
Subject: [PATCH] assign QAT cryptodev to correct NUMA node
Quoted 6 lines
Quoted 1 line
rte_cryptodev_pmd_init_paramsshould use NUMA node of the QATdevice
Quoted 3 lines
for its
socket_idrather than thesocket_idof the initializing process.Signed-off-by Lee Roberts <[email protected]>Acked-by Fiona Trahe <[email protected]>
Modified title to "crypto/qat: assign device to correct NUMA node"
Applied to dpdk-next-crypto.
Thanks,
Pablo