Skip to contentSkip to conversation

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

PATCH Applied Anoob Joseph 2 participants 2 messages Feb 13, 2019 – Mar 6, 2019

lore
Share & tools
lore
#0 lore raw

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

Fixes 351fbee21986 ("common/cpt: support hash")
---
 drivers/common/cpt/cpt_ucode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/common/cpt/cpt_ucode.h +1 -1
index 5933ea7..d408d50 100644
@@ -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);
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 13 lines · Anoob Joseph
Fixes 351fbee21986 ("common/cpt: support hash")
---
  drivers/common/cpt/cpt_ucode.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/common/cpt/cpt_ucode.h +0 -0
index 5933ea7..d408d50 100644

drivers/common/cpt/cpt_ucode.h cpt_digest_gen_prep(uint32_t flags, · line 555

Quoted 8 lines
drivers/common/cpt/cpt_ucode.h +1 -1
@@ -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.