Skip to contentSkip to conversation

baseband/acc100: fix 4GUL outbound size when CRC is dropped

PATCH In review Nicolas Chautru 3 participants 5 messages Sep 8, 2021 – Oct 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 baseband/acc100: fix 4GUL outbound size when CRC is dropped

This patch fixes the issue by adjusting the outbound size after turbodecoding when the appended CRC is meant to be dropped.

Fixes f404dfe35cc3 ("baseband/acc100: support 4G processing")
---
 drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +2 -1
index 68ba523..b0485e7 100644
@@ -1744,7 +1744,8 @@
 
 	next_triplet = acc100_dma_fill_blk_type_out(
 			desc, h_output, *h_out_offset,
-			k >> 3, next_triplet, ACC100_DMA_BLKID_OUT_HARD);
+			(k - crc24_overlap) >> 3, next_triplet,
+			ACC100_DMA_BLKID_OUT_HARD);
 	if (unlikely(next_triplet < 0)) {
 		rte_bbdev_log(ERR,
 				"Mismatch between data to process and mbuf data length in bbdev_op: %p",
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Nicolas Chautru

This patch fixes the issue by adjusting the outbound size after turbodecoding when the appended CRC is meant to be dropped.

Fixes f404dfe35cc3 ("baseband/acc100: support 4G processing")
---
  drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +0 -0
index 68ba523..b0485e7 100644

drivers/baseband/acc100/rte_acc100_pmd.c line 1751

Quoted 9 lines
drivers/baseband/acc100/rte_acc100_pmd.c +2 -1
@@ -1744,7 +1744,8 @@
 
  	next_triplet = acc100_dma_fill_blk_type_out(
  			desc, h_output, *h_out_offset,
-			k >> 3, next_triplet, ACC100_DMA_BLKID_OUT_HARD);
+			(k - crc24_overlap) >> 3, next_triplet,
+			ACC100_DMA_BLKID_OUT_HARD);
  	if (unlikely(next_triplet < 0)) {
  		rte_bbdev_log(ERR,
  				"Mismatch between data to process and mbuf data length in bbdev_op: %p",

Thanks for this change, looks good.

#2 lore raw

Hi Akhil,
Can this be applied?
Thanks
Nic

Quoted 46 lines

-----Original Message-----
From: Tom Rix <[email protected]>
Sent: Saturday, September 11, 2021 12:19 PM
To: Chautru, Nicolas <[email protected]>; [email protected]; [email protected]
Cc: [email protected]; Zhang, Mingshan <[email protected]>; Joshi, Arun <[email protected]>; [email protected]
Subject: Re: [PATCH v1] baseband/acc100: fix 4GUL outbound size when CRC is dropped

Quoted 17 lines · Nicolas Chautru

This patch fixes the issue by adjusting the outbound size after turbodecoding when the appended CRC is meant to be dropped.

Fixes f404dfe35cc3 ("baseband/acc100: support 4G processing")
---
  drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +0 -0
index 68ba523..b0485e7 100644

drivers/baseband/acc100/rte_acc100_pmd.c line 1747

Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c +0 -1
@@ -1744,7 +1744,8 @@
 
  	next_triplet = acc100_dma_fill_blk_type_out(
  			desc, h_output, *h_out_offset,
-			k >> 3, next_triplet,

ACC100_DMA_BLKID_OUT_HARD);

drivers/baseband/acc100/rte_acc100_pmd.c

Quoted 5 lines
drivers/baseband/acc100/rte_acc100_pmd.c +2 -0
+			(k - crc24_overlap) >> 3, next_triplet,
+			ACC100_DMA_BLKID_OUT_HARD);
  	if (unlikely(next_triplet < 0)) {
  		rte_bbdev_log(ERR,
  				"Mismatch between data to process and

mbuf data length in

Quoted 1 line

bbdev_op: %p",

Thanks for this change, looks good.

#3 lore raw
Quoted 2 lines

Hi Akhil,
Can this be applied?

The patch did not apply cleanly.
It is rebased and Applied to dpdk-next-crypto. Please check.

Thanks.

#4 lore raw

Thanks Akhil. The applied rebase is fine.

Quoted 16 lines

-----Original Message-----
From: Akhil Goyal <[email protected]>
Sent: Tuesday, October 5, 2021 3:10 AM
To: Chautru, Nicolas <[email protected]>; Tom Rix <[email protected]>; [email protected]
Cc: [email protected]; Zhang, Mingshan <[email protected]>; Joshi, Arun <[email protected]>; [email protected]
Subject: RE: [PATCH v1] baseband/acc100: fix 4GUL outbound size when CRC is dropped

Quoted 2 lines

Hi Akhil,
Can this be applied?

The patch did not apply cleanly.
It is rebased and Applied to dpdk-next-crypto. Please check.

Thanks.