common/cpt: fix failure with null auth only test case

Message ID 1550049732-20334-1-git-send-email-anoobj@marvell.com
State Accepted, archived
Delegated to: akhil goyal
Headers show
Series
  • common/cpt: fix failure with null auth only test case
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS
ci/checkpatch success coding style OK

Commit Message

Anoob Joseph Feb. 13, 2019, 9:22 a.m.
Fixes: 351fbee21986 ("common/cpt: support hash")

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
 drivers/common/cpt/cpt_ucode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Akhil Goyal March 6, 2019, 4:42 p.m. | #1
On 2/13/2019 2:52 PM, Anoob Joseph wrote:
> Fixes: 351fbee21986 ("common/cpt: support hash")
>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
> ---
>   drivers/common/cpt/cpt_ucode.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/common/cpt/cpt_ucode.h b/drivers/common/cpt/cpt_ucode.h
> index 5933ea7..d408d50 100644
> --- a/drivers/common/cpt/cpt_ucode.h
> +++ b/drivers/common/cpt/cpt_ucode.h
> @@ -549,7 +549,7 @@ cpt_digest_gen_prep(uint32_t flags,
>   		/* Minor op is passthrough */
>   		opcode.s.minor = 0x03;
>   		/* Send out completion code only */
> -		vq_cmd_w0.s.param2 = 0x1;
> +		vq_cmd_w0.s.param2 = rte_cpu_to_be_16(0x1);
>   	}
>   
>   	vq_cmd_w0.s.opcode = rte_cpu_to_be_16(opcode.flags);
Applied to dpdk-next-crypto

Thanks.

Patch

diff --git a/drivers/common/cpt/cpt_ucode.h b/drivers/common/cpt/cpt_ucode.h
index 5933ea7..d408d50 100644
--- a/drivers/common/cpt/cpt_ucode.h
+++ b/drivers/common/cpt/cpt_ucode.h
@@ -549,7 +549,7 @@  cpt_digest_gen_prep(uint32_t flags,
 		/* Minor op is passthrough */
 		opcode.s.minor = 0x03;
 		/* Send out completion code only */
-		vq_cmd_w0.s.param2 = 0x1;
+		vq_cmd_w0.s.param2 = rte_cpu_to_be_16(0x1);
 	}
 
 	vq_cmd_w0.s.opcode = rte_cpu_to_be_16(opcode.flags);