From: Mairtin o Loingsigh Date: Wed, 15 Apr 2020 11:51:35 +0000 (+0100) Subject: crypto/aesni_mb: support DOCSIS AES-256 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9536622b86c898514b70aadff9973799887d4283;p=dpdk.git crypto/aesni_mb: support DOCSIS AES-256 This patch adds support for DOCSIS AES-256 when using AESNI-MB Signed-off-by: Mairtin o Loingsigh Acked-by: Pablo de Lara --- diff --git a/doc/guides/rel_notes/release_20_05.rst b/doc/guides/rel_notes/release_20_05.rst index 31bf9ac59d..94f90f1670 100644 --- a/doc/guides/rel_notes/release_20_05.rst +++ b/doc/guides/rel_notes/release_20_05.rst @@ -78,6 +78,10 @@ New Features * Added support for matching on IPv4 Time To Live and IPv6 Hop Limit. +* **Updated the AESNI MB crypto PMD.** + + * Updated the AESNI MB PMD with AES-256 DOCSIS algorithm. + * **Added handling of mixed crypto algorithms in QAT PMD for GEN2.** Enabled handling of mixed algorithms in encrypted digest hash-cipher diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c index 8456611743..434e2652bf 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c @@ -314,8 +314,13 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .block_size = 16, .key_size = { .min = 16, +#if IMB_VERSION_NUM >= IMB_VERSION(0, 53, 3) + .max = 32, + .increment = 16 +#else .max = 16, .increment = 0 +#endif }, .iv_size = { .min = 16,