From: Nicolas Chautru Date: Wed, 8 Sep 2021 01:39:40 +0000 (-0700) Subject: baseband/acc100: fix 4GUL outbound size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b0df6b29e764d30a0a23b7be378bdc04066d90a3;p=dpdk.git 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 --- 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,