Skip to contentSkip to conversation

crypto/octeontx2: enable unbinding

PATCH Applied Thierry Herbelot 3 participants 3 messages Feb 10, 2020 – Feb 12, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/octeontx2: enable unbinding

Like for OCTEON TX, the OCTEON TX2 crypto engines must first be unbound from their kernel module, then rebound to vfio-pci, before being used in DPDK.

As this capability is detected at runtime by dpdk-pmdinfo, add the info in the PMD registering directives.

Then an external script can be used for bind and unbind.

Fixes 2f8a1b963eb77 ("crypto/octeontx2: add PMD skeleton")
Cc Anoob Joseph <[email protected]>
---
 drivers/crypto/octeontx2/otx2_cryptodev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/octeontx2/otx2_cryptodev.c +1 -0
index 7fd216bb3901..7b8add1bfc6a 100644
@@ -145,6 +145,7 @@ static struct cryptodev_driver otx2_cryptodev_drv;
 RTE_INIT(otx2_cpt_init_log);
 RTE_PMD_REGISTER_PCI(CRYPTODEV_NAME_OCTEONTX2_PMD, otx2_cryptodev_pmd);
 RTE_PMD_REGISTER_PCI_TABLE(CRYPTODEV_NAME_OCTEONTX2_PMD, pci_id_cpt_table);
+RTE_PMD_REGISTER_KMOD_DEP(CRYPTODEV_NAME_OCTEONTX2_PMD, "vfio-pci");
 RTE_PMD_REGISTER_CRYPTO_DRIVER(otx2_cryptodev_drv, otx2_cryptodev_pmd.driver,
 		otx2_cryptodev_driver_id);
 
Signature · 1 line
2.25.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines

Like for OCTEON TX, the OCTEON TX2 crypto engines must first be unbound from their kernel module, then rebound to vfio-pci, before being used in DPDK.

As this capability is detected at runtime by dpdk-pmdinfo, add the info in the PMD registering directives.

Quoted 7 lines

Then an external script can be used for bind and unbind.

Fixes 2f8a1b963eb77 ("crypto/octeontx2: add PMD skeleton")
Cc Anoob Joseph <[email protected]>
Applied
#2 lore raw
Quoted 9 lines
Quoted 9 lines

Like for OCTEON TX, the OCTEON TX2 crypto engines must first be unbound from their kernel module, then rebound to vfio-pci, before being used in DPDK.

As this capability is detected at runtime by dpdk-pmdinfo, add the info in the PMD registering directives.

Then an external script can be used for bind and unbind.

Quoted 7 lines
Quoted 5 lines
Fixes 2f8a1b963eb77 ("crypto/octeontx2: add PMD skeleton")
Cc Anoob Joseph <[email protected]>

Applied to dpdk-next-crypto

Thanks.