baseband/acc100: fix 4GUL outbound size
authorNicolas Chautru <nicolas.chautru@intel.com>
Wed, 8 Sep 2021 01:39:40 +0000 (18:39 -0700)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 8 Oct 2021 19:31:07 +0000 (21:31 +0200)
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 <nicolas.chautru@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
drivers/baseband/acc100/rte_acc100_pmd.c

index 2e9ce92..4e2feef 100644 (file)
@@ -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,