[dpdk-stable] patch 'crypto/octeontx: enable unbinding' has been queued to LTS release 18.11.6

Kevin Traynor ktraynor at redhat.com
Fri Nov 22 15:41:18 CET 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.6

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/29/19. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/c17bff13a741be46a107b78784b006dba544eaea

Thanks.

Kevin.

---
>From c17bff13a741be46a107b78784b006dba544eaea Mon Sep 17 00:00:00 2001
From: Thierry Herbelot <thierry.herbelot at 6wind.com>
Date: Fri, 13 Sep 2019 08:40:03 +0200
Subject: [PATCH] crypto/octeontx: enable unbinding

[ upstream commit 1378ddce50eaa482891fcb7ee28c5a9248335bc6 ]

Like for Ethernet ports, the OCTEON TX 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: bfe2ae495ee2 ("crypto/octeontx: add PMD skeleton")

Signed-off-by: Thierry Herbelot <thierry.herbelot at 6wind.com>
Acked-by: Anoob Joseph <anoobj at marvell.com>
---
 drivers/crypto/octeontx/otx_cryptodev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/octeontx/otx_cryptodev.c b/drivers/crypto/octeontx/otx_cryptodev.c
index b201e0a1b..c3076487f 100644
--- a/drivers/crypto/octeontx/otx_cryptodev.c
+++ b/drivers/crypto/octeontx/otx_cryptodev.c
@@ -122,4 +122,5 @@ static struct cryptodev_driver otx_cryptodev_drv;
 RTE_PMD_REGISTER_PCI(CRYPTODEV_NAME_OCTEONTX_PMD, otx_cryptodev_pmd);
 RTE_PMD_REGISTER_PCI_TABLE(CRYPTODEV_NAME_OCTEONTX_PMD, pci_id_cpt_table);
+RTE_PMD_REGISTER_KMOD_DEP(CRYPTODEV_NAME_OCTEONTX_PMD, "vfio-pci");
 RTE_PMD_REGISTER_CRYPTO_DRIVER(otx_cryptodev_drv, otx_cryptodev_pmd.driver,
 		otx_cryptodev_driver_id);
-- 
2.21.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-11-22 14:36:56.922083008 +0000
+++ 0032-crypto-octeontx-enable-unbinding.patch	2019-11-22 14:36:55.201149201 +0000
@@ -1 +1 @@
-From 1378ddce50eaa482891fcb7ee28c5a9248335bc6 Mon Sep 17 00:00:00 2001
+From c17bff13a741be46a107b78784b006dba544eaea Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1378ddce50eaa482891fcb7ee28c5a9248335bc6 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index fc64a5f30..8df4b710c 100644
+index b201e0a1b..c3076487f 100644
@@ -28 +29 @@
-@@ -119,4 +119,5 @@ static struct cryptodev_driver otx_cryptodev_drv;
+@@ -122,4 +122,5 @@ static struct cryptodev_driver otx_cryptodev_drv;



More information about the stable mailing list