[dpdk-dev] [PATCH] crypto/kasumi: add dynamic logging to kasumi
De Lara Guarch, Pablo
pablo.de.lara.guarch at intel.com
Wed Jun 27 17:38:06 CEST 2018
Hi Naga,
Two last comments below.
> -----Original Message-----
> From: Somarowthu, Naga SureshX
> Sent: Monday, June 25, 2018 6:23 AM
> To: dev at dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; Pattan, Reshma
> <reshma.pattan at intel.com>; Somarowthu, Naga SureshX
> <naga.sureshx.somarowthu at intel.com>
> Subject: [PATCH] crypto/kasumi: add dynamic logging to kasumi
>
> 1.added new logtype for kasumi driver.
> 2.registered new logtype.
> 3.KASUMI_LOG_ERR and CDEV_LOG_ERR are
> replaced with new logtype name KASUMI_PMD_LOG.
>
> Signed-off-by: Naga Suresh Somarowthu
> <naga.sureshx.somarowthu at intel.com>
> Reviewed-by: Reshma Pattan <reshma.pattan at intel.com>
> ---
...
> if (cipher_xform) {
> /* Only KASUMI F8 supported */
> if (cipher_xform->cipher.algo !=
> RTE_CRYPTO_CIPHER_KASUMI_F8)
> + KASUMI_PMD_LOG(ERR, "Unsupported cipher
> algorithm ");
> return -ENOTSUP;
Missing braces, as there are two lines inside the if statement.
>
> sess->cipher_iv_offset = cipher_xform->cipher.iv.offset;
> if (cipher_xform->cipher.iv.length != KASUMI_IV_LENGTH) {
> - KASUMI_LOG_ERR("Wrong IV length");
> + KASUMI_PMD_LOG(ERR, "Wrong IV length");
> return -EINVAL;
> }
>
> @@ -102,10 +103,11 @@ kasumi_set_session_parameters(struct
> kasumi_session *sess,
> if (auth_xform) {
> /* Only KASUMI F9 supported */
> if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_KASUMI_F9)
> + KASUMI_PMD_LOG(ERR, "Unsupported
> authentication");
> return -ENOTSUP;
Missing braces, as there are two lines inside the if statement.
>
> if (auth_xform->auth.digest_length !=
More information about the dev
mailing list