[dpdk-stable] patch 'crypto/octeontx2: add kmod dependency info' has been queued to stable release 19.11.1

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Feb 17 18:45:06 CET 2020


Hi,

FYI, your patch has been queued to stable release 19.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/19/20. 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.

Thanks.

Luca Boccassi

---
>From 97e6c5c30a2a19850c8a8a225416b6aa7b8e09b9 Mon Sep 17 00:00:00 2001
From: Thierry Herbelot <thierry.herbelot at 6wind.com>
Date: Mon, 10 Feb 2020 08:35:12 +0100
Subject: [PATCH] crypto/octeontx2: add kmod dependency info

[ upstream commit 02ba37237612f6d9a30b48e232b3dcd2cafe4e60 ]

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")

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

diff --git a/drivers/crypto/octeontx2/otx2_cryptodev.c b/drivers/crypto/octeontx2/otx2_cryptodev.c
index 7fd216bb39..7b8add1bfc 100644
--- a/drivers/crypto/octeontx2/otx2_cryptodev.c
+++ b/drivers/crypto/octeontx2/otx2_cryptodev.c
@@ -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);
 
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-02-17 17:00:15.727594839 +0000
+++ 0014-crypto-octeontx2-add-kmod-dependency-info.patch	2020-02-17 17:00:15.283950115 +0000
@@ -1,8 +1,10 @@
-From 02ba37237612f6d9a30b48e232b3dcd2cafe4e60 Mon Sep 17 00:00:00 2001
+From 97e6c5c30a2a19850c8a8a225416b6aa7b8e09b9 Mon Sep 17 00:00:00 2001
 From: Thierry Herbelot <thierry.herbelot at 6wind.com>
 Date: Mon, 10 Feb 2020 08:35:12 +0100
 Subject: [PATCH] crypto/octeontx2: add kmod dependency info
 
+[ upstream commit 02ba37237612f6d9a30b48e232b3dcd2cafe4e60 ]
+
 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.
@@ -13,7 +15,6 @@
 Then an external script can be used for bind and unbind.
 
 Fixes: 2f8a1b963eb77 ("crypto/octeontx2: add PMD skeleton")
-Cc: stable at dpdk.org
 
 Signed-off-by: Thierry Herbelot <thierry.herbelot at 6wind.com>
 Acked-by: Anoob Joseph <anoobj at marvell.com>


More information about the stable mailing list