baseband/acc100: fix 4GUL outbound size when CRC is dropped
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.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
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",
Signature · 1 line
1.8.3.1
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")Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/baseband/acc100/rte_acc100_pmd.c +0
-0
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.
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 droppedQuoted 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")Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/baseband/acc100/rte_acc100_pmd.c +0
-0drivers/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 andmbuf data length in
Quoted 1 line
bbdev_op: %p",Thanks for this change, looks good.
Reviewed-by Tom Rix <[email protected]>
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.
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 droppedQuoted 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.