crypto/cnxk: support null authentication in IPsec
[dpdk.git] / drivers / crypto / cnxk / cnxk_cryptodev.c
index 0ffe9d0..d67de54 100644 (file)
@@ -2,10 +2,34 @@
  * Copyright(C) 2021 Marvell.
  */
 
+#include <rte_cryptodev.h>
+
 #include "roc_cpt.h"
 
 #include "cnxk_cryptodev.h"
 
+uint64_t
+cnxk_cpt_default_ff_get(void)
+{
+       uint64_t ff = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
+                     RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
+                     RTE_CRYPTODEV_FF_HW_ACCELERATED |
+                     RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT |
+                     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_SYM_SESSIONLESS |
+                     RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED |
+                     RTE_CRYPTODEV_FF_SECURITY;
+
+       if (roc_model_is_cn10k())
+               ff |= RTE_CRYPTODEV_FF_SECURITY_INNER_CSUM;
+
+       return ff;
+}
+
 int
 cnxk_cpt_eng_grp_add(struct roc_cpt *roc_cpt)
 {