]> git.droids-corp.org - dpdk.git/commitdiff
baseband/fpga_5gnr_fec: remove filler from HARQ
authorHernan Vargas <hernan.vargas@intel.com>
Fri, 20 May 2022 03:05:56 +0000 (22:05 -0500)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:36 +0000 (16:26 +0200)
Removed filler bits from HARQ calculation on the N3000 FPGA since these
are already taken out by the deratematching step.
The change is only an optimization with no functional impact, no change
required on stable branches.

Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
Reviewed-by: Nicolas Chautru <nicolas.chautru@intel.com>
drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c

index d678695a3cde0c17d52f7ff1b297bf82fb42c56e..82ae6ba678dbed3a30892593f1a20d293dbf69b4 100644 (file)
@@ -1844,7 +1844,7 @@ enqueue_ldpc_dec_one_op_cb(struct fpga_queue *q, struct rte_bbdev_dec_op *op,
                else
                        l = k0 + e + dec->n_filler;
                harq_out_length = RTE_MIN(RTE_MAX(harq_in_length, l),
-                               dec->n_cb - dec->n_filler);
+                               dec->n_cb);
                dec->harq_combined_output.length = harq_out_length;
        }