Skip to contentSkip to conversation

assign QAT cryptodev to correct NUMA node

PATCH Applied Lee Roberts 3 participants 3 messages Mar 9, 2018 – Mar 26, 2018 Crypto API

lore
Share & tools
lore
#0 lore raw

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
index bf83740..82641aa 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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_params should use NUMA node of the QAT device for its socket_id rather than the socket_id of the initializing process.

#2 lore raw
Quoted 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 node

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 6 lines
Quoted 1 line

rte_cryptodev_pmd_init_params should use NUMA node of the QAT

device

Quoted 3 lines

for its socket_id rather than the socket_id of the initializing process.

Modified title to "crypto/qat: assign device to correct NUMA node"

Applied to dpdk-next-crypto.
Thanks,

Pablo