Skip to contentSkip to conversation

crypto/octeontx2: fix crypto OOP support

PATCH Superseded Didier Pallard 3 participants 6 messages Oct 23, 2020 – Oct 29, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/octeontx2: fix crypto OOP support

Out of place with linear buffers is supported by octeontx2 while not advertised.

Fixes 6aa9ceaddf1d ("crypto/octeontx2: add symmetric capabilities")
---
 drivers/crypto/octeontx2/otx2_cryptodev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/octeontx2/otx2_cryptodev.c +1 -0
index 02d2fd83bdcf..44da26c78d04 100644
@@ -114,6 +114,7 @@ otx2_cpt_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
 			     RTE_CRYPTODEV_FF_HW_ACCELERATED |
 			     RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
 			     RTE_CRYPTODEV_FF_IN_PLACE_SGL |
+			     RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
 			     RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
 			     RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
 			     RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
Signature · 1 line
2.20.1
#1 lore raw
Quoted 8 lines

Subject: [PATCH] crypto/octeontx2: fix crypto OOP support

Out of place with linear buffers is supported by octeontx2 while not advertised.

Fixes 6aa9ceaddf1d ("crypto/octeontx2: add symmetric capabilities")

Cc below fixes line and then a blank line.

Quoted 17 lines
---
 drivers/crypto/octeontx2/otx2_cryptodev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/octeontx2/otx2_cryptodev.c +1 -0
index 02d2fd83bdcf..44da26c78d04 100644
@@ -114,6 +114,7 @@ otx2_cpt_pci_probe(struct rte_pci_driver *pci_drv
 __rte_unused,
 			     RTE_CRYPTODEV_FF_HW_ACCELERATED |
 			     RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
 			     RTE_CRYPTODEV_FF_IN_PLACE_SGL |
+			     RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
 			     RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
 			     RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
Quoted 1 line

RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |

This feature flag is missing in the documentation of the PMD as well. doc/guides/cryptodevs/features/octeontx2.ini

Same comment for http://patches.dpdk.org/patch/81947/

#2 lore raw

PATCH v2 1/1 crypto/octeontx2: fix crypto OOP support

In reply to Didier Pallard

Out of place with linear buffers is supported by octeontx2 while not advertised.

Fixes 6aa9ceaddf1d ("crypto/octeontx2: add symmetric capabilities")

---
v2:
* Add documentation.

 doc/guides/cryptodevs/features/octeontx2.ini | 1 +
 drivers/crypto/octeontx2/otx2_cryptodev.c    | 1 +
 2 files changed, 2 insertions(+)
doc/guides/cryptodevs/features/octeontx2.ini +1 -0
index c7e418d826e1..b0d50ce98447 100644
@@ -12,6 +12,7 @@ Protocol offload       = Y
 In Place SGL           = Y
 OOP SGL In LB  Out     = Y
 OOP SGL In SGL Out     = Y
+OOP LB  In LB  Out     = Y
 RSA PRIV OP KEY QT     = Y
 Symmetric sessionless  = Y
 
drivers/crypto/octeontx2/otx2_cryptodev.c +1 -0
index 02d2fd83bdcf..44da26c78d04 100644
@@ -114,6 +114,7 @@ otx2_cpt_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
 			     RTE_CRYPTODEV_FF_HW_ACCELERATED |
 			     RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
 			     RTE_CRYPTODEV_FF_IN_PLACE_SGL |
+			     RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
 			     RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
 			     RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
 			     RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
Signature · 1 line
2.20.1
#3 lore raw

Hi Ankur/Anoob,

Quoted 10 lines

Subject: [PATCH v2] crypto/octeontx2: fix crypto OOP support

Out of place with linear buffers is supported by octeontx2 while not advertised.

Fixes 6aa9ceaddf1d ("crypto/octeontx2: add symmetric capabilities")

---

Could you please Ack both these otx and otx2 patches.

Acked-by on v2 1/1
#4 lore raw
In reply to Didier Pallard
Quoted 13 lines

-----Original Message-----
From: Didier Pallard <[email protected]>
Sent: Tuesday, October 27, 2020 8:51 PM
To: [email protected]
Cc: [email protected]; Ankur Dwivedi <[email protected]>; Anoob Joseph <[email protected]>; Akhil Goyal <[email protected]>; Tejasree Kondoj <[email protected]>
Subject: [EXT] [PATCH v2] crypto/octeontx2: fix crypto OOP support

External Email

Quoted 8 lines

----------------------------------------------------------------------
Out of place with linear buffers is supported by octeontx2 while not advertised.

Fixes 6aa9ceaddf1d ("crypto/octeontx2: add symmetric capabilities")
Quoted 38 lines

---
v2:
* Add documentation.

doc/guides/cryptodevs/features/octeontx2.ini | 1 +
drivers/crypto/octeontx2/otx2_cryptodev.c | 1 +

2 files changed, 2 insertions(+)
doc/guides/cryptodevs/features/octeontx2.ini +0 -0
index c7e418d826e1..b0d50ce98447 100644
@@ -12,6 +12,7 @@ Protocol offload       = Y
In Place SGL           = Y
OOP SGL In LB  Out     = Y
OOP SGL In SGL Out     = Y

+OOP LB In LB Out = Y
RSA PRIV OP KEY QT = Y
Symmetric sessionless = Y

drivers/crypto/octeontx2/otx2_cryptodev.c +0 -0
index 02d2fd83bdcf..44da26c78d04 100644
@@ -114,6 +114,7 @@ otx2_cpt_pci_probe(struct rte_pci_driver *pci_drv
 __rte_unused,
 			     RTE_CRYPTODEV_FF_HW_ACCELERATED |
 			     RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING

|
RTE_CRYPTODEV_FF_IN_PLACE_SGL |

drivers/crypto/octeontx2/otx2_cryptodev.c +1 -0
+			     RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |

RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT | RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT | RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
--
2.20.1