crypto/cnxk: add feature flag for cn9k lookaside IPsec
authorArchana Muniganti <marchana@marvell.com>
Tue, 7 Sep 2021 14:21:03 +0000 (19:51 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 7 Sep 2021 18:19:28 +0000 (20:19 +0200)
Update device feature flag to support lookaside IPsec for
cn9k.

Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Signed-off-by: Archana Muniganti <marchana@marvell.com>
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
doc/guides/cryptodevs/cnxk.rst
doc/guides/cryptodevs/features/cn9k.ini
doc/guides/rel_notes/release_21_11.rst
drivers/crypto/cnxk/cnxk_cryptodev.c

index 1eb7228..752316f 100644 (file)
@@ -222,10 +222,20 @@ This feature can be tested with ipsec-secgw sample application.
 Supported OCTEON cnxk SoCs
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+- CN9XX
 - CN10XX
 
-Features supported
-~~~~~~~~~~~~~~~~~~
+CN9XX Features supported
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+* IPv4
+* ESP
+* Tunnel mode
+* UDP Encapsulation
+* AES-128/192/256-GCM
+
+CN10XX Features supported
+~~~~~~~~~~~~~~~~~~~~~~~~~
 
 * IPv4
 * ESP
index d69dbe8..dd935d4 100644 (file)
@@ -8,6 +8,7 @@ Symmetric crypto       = Y
 Asymmetric crypto      = Y
 Sym operation chaining = Y
 HW Accelerated         = Y
+Protocol offload       = Y
 In Place SGL           = Y
 OOP SGL In LB  Out     = Y
 OOP SGL In SGL Out     = Y
index b559009..411fa95 100644 (file)
@@ -67,6 +67,7 @@ New Features
   * Added AES-CBC SHA1-HMAC support in lookaside protocol (IPsec) for CN10K.
   * Added Transport mode support in lookaside protocol (IPsec) for CN10K.
   * Added UDP encapsulation support in lookaside protocol (IPsec) for CN10K.
+  * Added support for lookaside protocol (IPsec) offload for CN9K.
 
 * **Added support for event crypto adapter on Marvell CN10K and CN9K.**
 
index 9c7dc62..5c7801e 100644 (file)
@@ -21,10 +21,8 @@ cnxk_cpt_default_ff_get(void)
                      RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
                      RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
                      RTE_CRYPTODEV_FF_SYM_SESSIONLESS |
-                     RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED;
-
-       if (roc_model_is_cn10k())
-               ff |= RTE_CRYPTODEV_FF_SECURITY;
+                     RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED |
+                     RTE_CRYPTODEV_FF_SECURITY;
 
        return ff;
 }