From b0df6b29e764d30a0a23b7be378bdc04066d90a3 Mon Sep 17 00:00:00 2001 From: Nicolas Chautru Date: Tue, 7 Sep 2021 18:39:40 -0700 Subject: [PATCH] baseband/acc100: fix 4GUL outbound size 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") Cc: stable@dpdk.org Signed-off-by: Nicolas Chautru Reviewed-by: Tom Rix --- drivers/baseband/acc100/rte_acc100_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/baseband/acc100/rte_acc100_pmd.c b/drivers/baseband/acc100/rte_acc100_pmd.c index 2e9ce92db6..4e2feefc3c 100644 --- a/drivers/baseband/acc100/rte_acc100_pmd.c +++ b/drivers/baseband/acc100/rte_acc100_pmd.c @@ -1749,7 +1749,7 @@ acc100_dma_desc_td_fill(struct rte_bbdev_dec_op *op, next_triplet = acc100_dma_fill_blk_type_out( desc, h_output, *h_out_offset, - k >> 3, next_triplet, + (k - crc24_overlap) >> 3, next_triplet, ACC100_DMA_BLKID_OUT_HARD); if (unlikely(next_triplet < 0)) { rte_bbdev_log(ERR, -- 2.20.1