[PATCH v3 09/30] baseband/acc100: reduce input length for CRC24B
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Oct 14 11:56:29 CEST 2022
On 10/12/22 04:53, Hernan Vargas wrote:
> Input length should be reduced only for CRC24B.
>
> Fixes: 5ad5060f8f7 ("baseband/acc100: add LDPC processing functions")
> Cc: stable at dpdk.org
>
> Signed-off-by: Hernan Vargas <hernan.vargas at intel.com>
> ---
> drivers/baseband/acc/rte_acc100_pmd.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c
> index c0184b8174..c0e6d0ef23 100644
> --- a/drivers/baseband/acc/rte_acc100_pmd.c
> +++ b/drivers/baseband/acc/rte_acc100_pmd.c
> @@ -1427,8 +1427,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;
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the stable
mailing list