Skip to content

Commit

Permalink
baseband/acc100: fix input length for CRC24B
Browse files Browse the repository at this point in the history
[ upstream commit ec1424f ]

Input length should be reduced only for CRC24B.

Fixes: 5ad5060 ("baseband/acc100: add LDPC processing functions")

Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
Hernanlv authored and kevintraynor committed Nov 7, 2022
1 parent 4fb74af commit 78faac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/baseband/acc100/rte_acc100_pmd.c
Expand Up @@ -1635,8 +1635,7 @@ acc100_dma_desc_le_fill(struct rte_bbdev_enc_op *op,

K = (enc->basegraph == 1 ? 22 : 10) * enc->z_c;
in_length_in_bits = K - enc->n_filler;
if ((enc->op_flags & RTE_BBDEV_LDPC_CRC_24A_ATTACH) ||
(enc->op_flags & RTE_BBDEV_LDPC_CRC_24B_ATTACH))
if (enc->op_flags & RTE_BBDEV_LDPC_CRC_24B_ATTACH)
in_length_in_bits -= 24;
in_length_in_bytes = in_length_in_bits >> 3;

Expand Down

0 comments on commit 78faac7

Please sign in to comment.