On Sat, Apr 30, 2022 at 10:30 AM Vamsi Attunuru <vattun...@marvell.com> wrote: > > Patch enables 3DES-CBC capability of inline crypto device. > > Signed-off-by: Vamsi Attunuru <vattun...@marvell.com> Acked-by: Jerin Jacob <jer...@marvell.com> Applied to dpdk-next-net-mrvl/for-next-net. Thanks
> --- > drivers/common/cnxk/cnxk_security.c | 3 +++ > drivers/net/cnxk/cn10k_ethdev_sec.c | 20 ++++++++++++++++++++ > 2 files changed, 23 insertions(+) > > diff --git a/drivers/common/cnxk/cnxk_security.c > b/drivers/common/cnxk/cnxk_security.c > index ec808c0033..8ea0aea7c2 100644 > --- a/drivers/common/cnxk/cnxk_security.c > +++ b/drivers/common/cnxk/cnxk_security.c > @@ -129,6 +129,9 @@ ot_ipsec_sa_common_param_fill(union roc_ot_ipsec_sa_word2 > *w2, > case RTE_CRYPTO_CIPHER_AES_CTR: > w2->s.enc_type = ROC_IE_OT_SA_ENC_AES_CTR; > break; > + case RTE_CRYPTO_CIPHER_3DES_CBC: > + w2->s.enc_type = ROC_IE_OT_SA_ENC_3DES_CBC; > + break; > default: > return -ENOTSUP; > } > diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c > b/drivers/net/cnxk/cn10k_ethdev_sec.c > index 87bb691ab4..d0463b3622 100644 > --- a/drivers/net/cnxk/cn10k_ethdev_sec.c > +++ b/drivers/net/cnxk/cn10k_ethdev_sec.c > @@ -62,6 +62,26 @@ static struct rte_cryptodev_capabilities > cn10k_eth_sec_crypto_caps[] = { > }, } > }, } > }, > + { /* 3DES CBC */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + {.sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, > + {.cipher = { > + .algo = RTE_CRYPTO_CIPHER_3DES_CBC, > + .block_size = 8, > + .key_size = { > + .min = 24, > + .max = 24, > + .increment = 0 > + }, > + .iv_size = { > + .min = 8, > + .max = 16, > + .increment = 8 > + } > + }, } > + }, } > + }, > { /* SHA1 HMAC */ > .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > {.sym = { > -- > 2.25.1 >